Home arrow Forum Topics Not Appearing For SMF Admin While Wrapped
  Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 10:28:15 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 2.0.x (Moderators: -Wolverine, kai920)
| | | |-+  Topics Not Appearing For SMF Admin While Wrapped
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Topics Not Appearing For SMF Admin While Wrapped  (Read 3462 times)
Matthew Chase
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Topics Not Appearing For SMF Admin While Wrapped
« on: January 23, 2008, 08:30:05 PM »

* Joomla  1.0.14RC (problem was present in 1.0.12, 1.0.13, upgraded each step to see if the problem would go away)

* SMF 1.1.4

* JSMF 2.0.2.1

* CB 1.1 (also occurred in 1.0.2)

* PHP 5.2.5

* MySQL 4.1.22-standard-log


--

Hello,

I've done extensive searching across the web and this forum to find a solution. I have upgraded or reinstalled practically every major component of our site (CB, SMF, Joomla, JSMF) to no avail.

Basically, one day our site and forums are working fine. The next, they are not. Apparently our host had some problems with the php last Friday. After that the problems started popping up. They moved our site over to another server to see if that would resolve the problem...no good.


So, the problem:


Certain topic pages will not load for users with an SMF administrator (not Joomla, SMF Admin) account while wrapped inside Joomla.  Even more specifically, only posts that utilize the quote or code BBCode tags. Once you delete the topic that has the quote or code tags the administrator can once again see the topic.

I've done thorough testing of users. I created a completely new account. Used an old dummy account. Deleted my account. Recreated my account. I have the site up in Firefox under one user and in IE as another. In IE the normal user views the topic. No problem. In the other browser window I add the user to the administrator group. Refresh the page. Suddenly it can't load.

To ensure it wasn't a browser specific issue I swapped back and forth doing the same thing in both browsers. The issue happens in IE7 and the latest stable Firefox.

When the site is not wrapped inside Joomla its fine. In fact the bridge can still be installed and still using the Joomla pathways and the topic be viewable but once you wrap the forum inside Joomla no go.


I tried using a different template for both Joomla and SMF. Still no change.

Global moderators do not have this problem. Although once added to the administrator group they do.

The Joomla enclosure loads. You see the menu. But the area inside where the topic should load does not. There are no errors given. The topic itself just doesn't load.

When you view source the code for the topic is not there.


I'm stumped. The original webmaster of our site is stumped. Our host seems clueless.

I can provide screen shots of what the admin sees and what a regular user sees if that'll help
« Last Edit: January 24, 2008, 05:58:25 PM by Matthew Chase » Logged
Matthew Chase
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #1 on: January 24, 2008, 05:56:26 PM »

Also attempted disabling BBCode in SMF. No good.
Logged
Matthew Chase
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #2 on: January 27, 2008, 01:38:58 PM »

Also tried uninstalling SMF mods. Still no good.
Logged
Ralph
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 12


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #3 on: February 02, 2008, 11:14:46 AM »

I'm having the same problem.
Did you find anything about this??
Logged
DOCa Cola
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #4 on: February 14, 2008, 12:08:47 PM »

i do have exactly the same problem after i have moved to a new server...
Logged
Matthew Chase
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #5 on: February 17, 2008, 06:46:08 PM »

Nope, I'm still having the problem and the BBCode theory has been debunked. There is a post I can't get to just recently that has no usage of BBCode quotes. No special characters. No nothing.

Any developers have any idea what is causing this?
Logged
DOCa Cola
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #6 on: February 17, 2008, 06:57:58 PM »

yes, i noticed the same. it appears that only guests and registered users are not affectd. i have some special users in our forum that have a special usergroup that experience the same issue, so this does not affect admin membergroups but it seems that all users are affected that are not in the 'default' membergroup.
the problem first occoured after we moved to a new server with an exact copy of the db and joomla/smf files. the problem seems to be occouring due to some kind of server configuration. i have not figured out yet which setting is responsible for that issue...
Logged
buzztiger
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #7 on: February 22, 2008, 12:50:56 AM »

Hi folks,

same issue over here. I have tracked it down to the "delete/modify any posts" permission. Not sure how to fix it, but as a workaround I have disabled that permissions for my moderators.

Since this bridge doesn't seem to be developed anymore we're on our own.. Any ideas how to fix this?
Logged
DOCa Cola
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #8 on: February 22, 2008, 03:35:01 AM »

it is related to the new php 5.2.5 versions regular expression library. most isps have recently updated. either this is a bug or something they have changed in how the regexes are evaluated.
i have written a workaround now so that atleast all sites are now appearing again but i have seen one case where the css file of the forum isn't correctly integrated into the forum on the sites that didn't appear before. so you have two ways of fixing that, either go back to php 5.2.4 if you can and hope this was really a bug in the pcre library that is fixed with the next version or you can try my fix. plaese note that i am not an php expert though i have a lot programming experience

open smf.class.php

find:
Code:
$regex = array('/<!DOCTYPE.*<body>/smi', '/<\/body>/i', '/<\/html>/i');
$buffer = preg_replace($regex, array('', '', ''), $buffer);
unset($matches, $keywords, $css, $search, $replace, $headers, $regex);

replace with:
Code:
//Regex broken with PHP 5.2.5           
//$regex = array('/<!DOCTYPE.*<body>/smi', '/<\/body>/i', '/<\/html>/i');
//$buffer = preg_replace($regex, array('', '', ''), $buffer);
//unset($matches, $keywords, $css, $search, $replace, $headers, $regex);
$needle = '<body>';
$buffer = strstr($buffer, $needle);
$buffer = substr($buffer, strlen($needle));
$regex = array('/<\/body>/i', '/<\/html>/i');
$buffer = preg_replace($regex, array('', ''), $buffer);
unset($matches, $keywords, $css, $search, $replace, $headers, $regex, $needle);

use at your own risk. if you can write a better fix, please do so, also if you experience the css issue. i don't understand why the first regex in the array isn't working anymore in the new version
Logged
buzztiger
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #9 on: February 22, 2008, 09:46:00 PM »

Thanks for the help, but doesn't work for me. Still sometopics are not visible. It somehow also seems to be time related. After a while previously readable topics just disappear. Have disabled all cache and accelerators.

Went back to PHP Version 5.2.0-8+etch10 on my Debian machine, now everything works.
Logged
Organic
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 3


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #10 on: March 04, 2008, 10:29:40 AM »

Same problem here & it also happened immediately after switching to a new host.

I've even tried just removing myself from the admin group, hoping that would be a quick fix, but it's still an issue. Luckily, my members aren't affected & only 1 other admin has reported issues with 1 topic, so that's a relief. Still, this makes me crazy.

I'm going to try the smf.class.php fix listed above later today & will edit this post with my results. Wish me luck...
Logged
Tijntje
Joomla Newbie
*

Karma: +0/-2
Offline Offline

Posts: 36



View Profile WWW
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #11 on: March 05, 2008, 06:44:12 AM »

I'm having the same problem on my site.
Joomla 1.0.13 Stable
Joomla-SMF Forum 2.0.2.1
SMF 1.1.4

PHP Version 5.2.5
Logged
DOCa Cola
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #12 on: March 05, 2008, 06:55:33 AM »

yep, if you can go back to php 5.2.4 your issues will be solved. maybe they will fix the regex library in the next version. i assume it is a bug of some kind than a feature...
Logged
locutus
Joomla Expert
****

Karma: +21/-43
Offline Offline

Posts: 204


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #13 on: March 05, 2008, 10:06:27 AM »

It's also discussed over here:
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,4600.msg20490#msg20490
Logged

Javi
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
Re: Topics Not Appearing For SMF Admin While Wrapped
« Reply #14 on: March 07, 2008, 05:21:29 PM »

I have the same problem and i've added the code you entered above. It works for my site userers but not admins. Now , the admins can see all pages of the posts, but not with the correct css. Why is css not woking for site admins now... Embarrassed Embarrassed Embarrassed??
Logged
Pages: [1] 2 Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal.
None of the text or images in this public website may be copied without the expressed written consent of the authors.
Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use