|
Title: Topics Not Appearing For SMF Admin While Wrapped Post by: Matthew Chase 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 Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Matthew Chase on January 24, 2008, 05:56:26 PM Also attempted disabling BBCode in SMF. No good.
Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Matthew Chase on January 27, 2008, 01:38:58 PM Also tried uninstalling SMF mods. Still no good.
Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Ralph on February 02, 2008, 11:14:46 AM I'm having the same problem.
Did you find anything about this?? Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: DOCa Cola on February 14, 2008, 12:08:47 PM i do have exactly the same problem after i have moved to a new server...
Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Matthew Chase 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? Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: DOCa Cola 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... Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: buzztiger 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? Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: DOCa Cola 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 Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: buzztiger 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. Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Organic 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... Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Tijntje 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 Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: DOCa Cola 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...
Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: locutus 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 Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Javi 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... :-[ :-[ :-[??
Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: spytrek on March 08, 2008, 08:20:29 PM Same Here,
tried the workaround and it helps with seeing the postings again, but it screws the smf css/theme and overlaps the joomla's theme css over the smf theme. So it's not really that great. Joomla! 1.0.13 Stable [ Sunglow ] SMF version is: 1.1.4 Joomla-SMF version: 2.0.2.1 CB 1.1 Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: DOCa Cola on March 09, 2008, 05:28:49 AM then go find a solution ;) ::)
that atleast all users see the site as intended is better than nothing Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: spytrek on March 09, 2008, 08:02:28 AM I don't know why you react so aggresive, but the point is, our site does not look like it should be. If I was a php-guru I wouldn't ask for help here would I? Besides, if one never tells or describes whats wrong with an application, how are devs supposed to know a problem exists that needs fixing?
Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: DOCa Cola on March 09, 2008, 08:13:41 AM the bridge is not under development anymore. i am not a php guru either but i wrote the fix you are complaining about. so please just be happy that your regular see the site as intended. besides the php fix there are two other options to fix this issue one by going back to an pre-5.2.5 php version or to try the htaccess workaround.
Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: spytrek on March 09, 2008, 08:25:51 AM I can't revert to before 5.2.5 because I'm not the webhoster. Adding x-httpd handler in the .htaccess file doesn't work in my case. That was the first thing I tried before I posted. Plus, I wasn't complaining, I was merely stating what the symptoms are. Anyway thx for you help.
Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Allan on March 11, 2008, 05:00:25 PM Similar problem here ...
J.1.0.15 JSMF 2.0.2.1 SMF 1.1.4 CB 1.1 and PHP 5.2.5 This is happening intermittently to both registered users and admin. I have some registered users that can view all posts of all topics (as normal) ... I have some registered users that can't view posts in certain (unspecific) topics ... and admin is the same. It seems very unspecific and inconsistent to me. Will the fix posted above address this? Thanks! Allan Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Allan on March 12, 2008, 01:23:14 AM So now I am really confused ...
Tried to replicate this issue on my WAMP server ... J.1.0.14 JSMF 2.0.2.1 CB 1.1 SMF 1.1.4 ... with PHP 5.2.5. No difficulties with the "admin" account! :o Anyone? Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Superdaantje on March 12, 2008, 01:25:43 AM This seems to be a problem of the Bridge. More third party devs have this with there exensions. To bad for JH members but there is no more Dev to debug it.
Lets hope for you tha some can do this. Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Allan on March 12, 2008, 01:29:31 AM Yes, Super, I realize there is no dev support ... and I know you've repeatedly posted this ...
I am being optimistic that someone with some user input (like I've tried to provide) might be able to make this work ... at least until there is another reasonable option out there (and no, Fireboard is not an option). Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Stef on March 12, 2008, 12:59:37 PM See also :
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,4174.msg20591#msg20591 To solve a problem of blank page due numers of posts per page. Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: Superdaantje on March 17, 2008, 04:16:00 PM I don't know why you react so aggresive, but the point is, our site does not look like it should be. If I was a php-guru I wouldn't ask for help here would I? Besides, if one never tells or describes whats wrong with an application, how are devs supposed to know a problem exists that needs fixing? Sorry there are no more Devs left to fixes this ;) They have been stopped in June 2007 PHP 5.2.5 is an well know problem. This is not a bug in JSMF more in the PHP version. Is all ready reported on the bug tracker from PHP ;) Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: TeodorX on June 22, 2008, 04:45:34 AM Hi,
I had same problem (blank pages under admin accounts). I fixed that using following code based on @DOCa Cola ideea: In smf.class.php at the end of file I've added this function: Code: function t_get_content($src_for1, $src_for2, $src_in){ $ret=''; $pos1=stripos($src_in, $src_for1); $pos2=stripos($src_in, $src_for2); if ($pos1 and $pos2 and ($pos1 <= $pos2)){ $pos1 = $pos1 + strlen($src_for1); $ret = substr($src_in, $pos1, $pos2-$pos1); } return $ret; } Then I've commented & added: Code: // -- start comment-- // $regex = '/<head>.*<\/head>/smi'; // preg_match($regex, $buffer, $matches); // if (!empty($matches)) // { // $headers = $matches[0]; // } // -- end comment-- $headers = t_get_content('<head>', '</head>', $buffer); and a few lines bellow: Code: // -- start comment-- // $regex = array('/<!DOCTYPE.*<body>/smi', '/<\/body>/i', '/<\/html>/i'); // $buffer = preg_replace($regex, array('', '', ''), $buffer); // -- end comment-- $buffer = t_get_content('<body>','</body>',$buffer); Php 5.2.5 Bug 43185 (http://bugs.php.net/bug.php?id=43185) IMPORTANT: Caching must be disabled in JSMF bridge. Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: irradiate on June 26, 2008, 07:57:34 AM That little fix works but you do end up with no CSS ???
What I cant understand is that I have been using JSMF for 12 months now with no problems and It just happens now. It cant be anything to do with the PHP version as I contacted my host and they said it changed back in January and I have just changed to another host hoping that would fix the problem with no luck! Any body else have any ideas?? Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: irradiate on June 26, 2008, 08:44:11 AM Just fixed the problem with the CSS by using this fix
http://www.joomlahacks.com/component/option,com_smf/Itemid,94/topic,3752.0 Hope this helps :) Title: Re: Topics Not Appearing For SMF Admin While Wrapped Post by: locutus on June 26, 2008, 11:50:53 AM What I cant understand is that I have been using JSMF for 12 months now with no problems and It just happens now. It cant be anything to do with the PHP version as I contacted my host and they said it changed back in January and I have just changed to another host hoping that would fix the problem with no luck! You can check your PHP version via: Administration > System > System info.
Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved. Joomla Bridge by JoomlaHacks.com |