Author |
Message |
huntor
Regular
Joined: Jun 13, 2006
Posts: 54
|
Posted:
Fri Mar 09, 2012 7:25 pm |
|
When will RN 2.5 be converted to work with php 5.4?
I was testing with it and seems a lot of things are not compatible with it ;-(
So went back to 5.3.10 for now. |
|
|
|
|
nuken
RavenNuke(tm) Development Team
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Fri Mar 09, 2012 10:01 pm |
|
|
|
|
huntor
|
Posted:
Fri Mar 09, 2012 10:08 pm |
|
These are the only error showing. But also the page only shows up white.
Warning: ob_start(): second array member is not a valid method in C:\websites\wtf-squad.com\PHP-Nuke\mainfile.php on line 66
Notice: ob_start(): failed to create buffer in C:\websites\wtf-squad.com\PHP-Nuke\mainfile.php on line 66 |
|
|
|
|
nuken
|
Posted:
Fri Mar 09, 2012 10:32 pm |
|
Is zlib.output_compression activated in your php.ini? If so, set it to 0 and see if it works. |
|
|
|
|
huntor
|
Posted:
Fri Mar 09, 2012 10:43 pm |
|
zlib.output_compression = Off |
|
|
|
|
ascharbarth
New Member
Joined: Apr 08, 2011
Posts: 6
|
Posted:
Fri Mar 09, 2012 11:58 pm |
|
Well didn't work for me, downgrading as well. |
|
|
|
|
Palbin
Site Admin
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Sat Mar 10, 2012 9:31 am |
|
PHP 5.4 just came out. We have not had time to evaluate it. I suggest downgrading to the newest PHP 5.3.x. You are not missing out on anything unless you are a fairly advanced programmer. |
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
|
huntor
|
Posted:
Sat Mar 10, 2012 1:59 pm |
|
Hehe I just wanted to ask the question is all I can run both versions at same time so I have already set it back to 5.3 |
|
|
|
|
montego
Site Admin
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Mar 11, 2012 10:18 am |
|
|
|
|
huntor
|
Posted:
Sun Mar 11, 2012 11:34 am |
|
5.3 is perfectly fine.
The test was with an existing website to see how compatible it was. I did not try to install a fresh version.
5.4 gave me the two errors and a white screen. |
|
|
|
|
montego
|
Posted:
Sun Mar 18, 2012 12:25 pm |
|
huntor wrote: | 5.4 gave me the two errors and a white screen. |
Ok, we'll have to give this a run through and make sure its on the RN roadmap. |
|
|
|
|
Palbin
|
Posted:
Sat May 19, 2012 8:58 pm |
|
To make RN compatible with PHP 5.4.x you need to make the following edits. Open mainfile.php and find lines 57-77:
Code:
if ($phpver >= '4.0.4pl1' && isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'],'compatible')) {
if (extension_loaded('zlib')) {
@ob_end_clean();
ob_start('ob_gzhandler');
}
} elseif ($phpver > '4.0' && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && !empty($_SERVER['HTTP_ACCEPT_ENCODING'])) {
if (strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = true;
ob_start(array('ob_gzhandler',5));
ob_implicit_flush(0);
if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
header('Content-Encoding: gzip');
}
}
}
}
if (!@ini_get('register_globals')) {
@import_request_variables('GPC', '');
}
|
Change it to:
Code:
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false && @extension_loaded('zlib') && !headers_sent()) {
ob_start('ob_gzhandler');
ob_implicit_flush(0);
}
if (@ini_get('date.timezone') == '') {
date_default_timezone_set("America/New_York");
}
if (!@ini_get('register_globals')) {
extract($_GET, EXTR_SKIP);
extract($_POST, EXTR_SKIP);
extract($_COOKIE, EXTR_SKIP);
}
|
If anyone experiences any other issues please let me know.
P.S. I know the extract hack is a cover for bad coding. |
|
|
|
|
huntor
|
Posted:
Tue Jul 24, 2012 8:55 pm |
|
I am still getting this error after replacing the above code
Warning: ob_start(): output handler 'ob_gzhandler' conflicts with 'zlib output compression' in C:\website\mainfile.php on line 58 |
|
|
|
|
Palbin
|
Posted:
Thu Jul 26, 2012 6:12 pm |
|
Please try the following and let me know. If this does not work if could possibly be a php bug [ Only registered users can see links on this board! Get registered or login! ]
Code:
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false && @extension_loaded('zlib') && !headers_sent() && !@ini_get('zlib.output_compression')) {
ob_start('ob_gzhandler');
ob_implicit_flush(0);
}
|
PLEASE let me know either way. |
|
|
|
|
spasticdonkey
RavenNuke(tm) Development Team
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Thu Jul 26, 2012 6:42 pm |
|
Seems like the error occurs less frequently, but it still occurs. These are my zlib settings if it helps
zlib.output_compression Off
zlib.output_compression_level -1
zlib.output_handler no value |
|
|
|
|
Palbin
|
Posted:
Fri Jul 27, 2012 5:04 am |
|
If those are your settings it must be the PHP bug I posted above. Unless a script is turning it on. |
|
|
|
|
Palbin
|
Posted:
Fri Jul 27, 2012 5:06 am |
|
You can add a @ before the ob_start if you want to hide the warning, but I would upgrade your php version if possible. |
|
|
|
|
spasticdonkey
|
Posted:
Fri Jul 27, 2012 8:55 am |
|
Appreciate your efforts, and I believe you are right about the php bug. I thought it was strange considering zlib.output_compression was Off. A little unclear which version it is fixed in, as some of those posts are pretty recent... looks as though I would have to upgrade to an unstable dev version.
While I do need a test server on this pc, part of my reason for installing was to create a tutorial for noobs on how to set up xampp with RN, but looks like I might need a tutorial too, lol. I'm certainly not getting into "how to upgrade your xampp php version"...
Maybe I'll put this on the shelf until xampp upgrades it's php version rather than hacking away. If I get to feeling frisky I might look at wamp, but for some reason I am partial to xampp. |
|
|
|
|
avengerion
New Member
Joined: Jan 17, 2013
Posts: 11
|
Posted:
Thu Jan 17, 2013 7:26 am |
|
Hello All. I still have this error with RN 2.5 on my website and version of PHP is 5.4.
What can i do ??? |
|
|
|
|
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm
Joined: Aug 13, 2009
Posts: 1123
|
Posted:
Thu Jan 17, 2013 8:43 am |
|
avengerion, get in touch with your server, they are capable to give u instructions to solve this issue. Otherwise apply the changes inside your root from this file mainfile.php. Edit and modify it. |
|
|
|
|
avengerion
|
Posted:
Thu Jan 17, 2013 9:37 am |
|
I have talk to my helpdesk from my server. They say that the version of PHP is still in update. And no response about my problem.
So wich changes can i make in mainfile.php ??
Thx for your help. |
|
|
|
|
Palbin
|
Posted:
Thu Jan 17, 2013 9:45 am |
|
Palbin wrote: | To make RN compatible with PHP 5.4.x you need to make the following edits. Open mainfile.php and find lines 57-77:
Code:
if ($phpver >= '4.0.4pl1' && isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'],'compatible')) {
if (extension_loaded('zlib')) {
@ob_end_clean();
ob_start('ob_gzhandler');
}
} elseif ($phpver > '4.0' && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && !empty($_SERVER['HTTP_ACCEPT_ENCODING'])) {
if (strstr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = true;
ob_start(array('ob_gzhandler',5));
ob_implicit_flush(0);
if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
header('Content-Encoding: gzip');
}
}
}
}
if (!@ini_get('register_globals')) {
@import_request_variables('GPC', '');
}
|
Change it to:
Code:
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false && @extension_loaded('zlib') && !headers_sent()) {
ob_start('ob_gzhandler');
ob_implicit_flush(0);
}
if (@ini_get('date.timezone') == '') {
date_default_timezone_set("America/New_York");
}
if (!@ini_get('register_globals')) {
extract($_GET, EXTR_SKIP);
extract($_POST, EXTR_SKIP);
extract($_COOKIE, EXTR_SKIP);
}
|
If anyone experiences any other issues please let me know.
P.S. I know the extract hack is a cover for bad coding. |
|
|
|
|
|
hicuxunicorniobestbuildpc
|
Posted:
Thu Feb 28, 2013 6:52 am |
|
I'd like to inform you I switched to php 5.4, I turned error on and I've found NO ERRORS or any other problem! Eveything is working smooth. |
|
|
|
|
semperaye
Worker
Joined: Oct 31, 2011
Posts: 100
Location: North Carolina
|
Posted:
Sat Jul 20, 2013 8:09 pm |
|
Leave it to me to post in a thread 90 years old, but I just logged onto my website this evening and got the following message:
Warning: ob_start(): second array member is not a valid method in /home/***REMOVED***/mainfile.php on line 66
Not sure what caused this, as I haven't changed anything in months..any ideas?
Thanx in advance for the help!
-Derek
PHP Version information: 3.5.5, latest stable version: 4.0.4.1 |
|
|
|
|
nuken
|
Posted:
Sat Jul 20, 2013 8:58 pm |
|
Have you upgraded to RavenNuke 2.51.00? |
|
|
|
|
|