Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x
Author Message
huntor
Regular
Regular



Joined: Jun 13, 2006
Posts: 54

PostPosted: Fri Mar 09, 2012 7:25 pm Reply with quote

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.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri Mar 09, 2012 10:01 pm Reply with quote

What kind of errors were you getting?

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
huntor







PostPosted: Fri Mar 09, 2012 10:08 pm Reply with quote

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







PostPosted: Fri Mar 09, 2012 10:32 pm Reply with quote

Is zlib.output_compression activated in your php.ini? If so, set it to 0 and see if it works.
 
huntor







PostPosted: Fri Mar 09, 2012 10:43 pm Reply with quote

zlib.output_compression = Off
 
ascharbarth
New Member
New Member



Joined: Apr 08, 2011
Posts: 6

PostPosted: Fri Mar 09, 2012 11:58 pm Reply with quote

Well didn't work for me, downgrading as well.
 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Mar 10, 2012 9:31 am Reply with quote

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. 
View user's profile Send private message
huntor







PostPosted: Sat Mar 10, 2012 1:59 pm Reply with quote

Hehe I just wanted to ask the question is all Wink 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

PostPosted: Sun Mar 11, 2012 10:18 am Reply with quote

And 5.3 isn't working for you either?

When you ran the installer, what did the environment check step show? Just curious what is showing that might need to be set in your particular set up.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
huntor







PostPosted: Sun Mar 11, 2012 11:34 am Reply with quote

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







PostPosted: Sun Mar 18, 2012 12:25 pm Reply with quote

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







PostPosted: Sat May 19, 2012 8:58 pm Reply with quote

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







PostPosted: Tue Jul 24, 2012 8:55 pm Reply with quote

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







PostPosted: Thu Jul 26, 2012 6:12 pm Reply with quote

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

PostPosted: Thu Jul 26, 2012 6:42 pm Reply with quote

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
 
View user's profile Send private message Visit poster's website
Palbin







PostPosted: Fri Jul 27, 2012 5:04 am Reply with quote

If those are your settings it must be the PHP bug I posted above. Unless a script is turning it on.
 
Palbin







PostPosted: Fri Jul 27, 2012 5:06 am Reply with quote

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







PostPosted: Fri Jul 27, 2012 8:55 am Reply with quote

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
New Member



Joined: Jan 17, 2013
Posts: 11

PostPosted: Thu Jan 17, 2013 7:26 am Reply with quote

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 ???
 
View user's profile Send private message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1123

PostPosted: Thu Jan 17, 2013 8:43 am Reply with quote

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.
 
View user's profile Send private message
avengerion







PostPosted: Thu Jan 17, 2013 9:37 am Reply with quote

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







PostPosted: Thu Jan 17, 2013 9:45 am Reply with quote

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







PostPosted: Thu Feb 28, 2013 6:52 am Reply with quote

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
Worker



Joined: Oct 31, 2011
Posts: 100
Location: North Carolina

PostPosted: Sat Jul 20, 2013 8:09 pm Reply with quote

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
 
View user's profile Send private message
nuken







PostPosted: Sat Jul 20, 2013 8:58 pm Reply with quote

Have you upgraded to RavenNuke 2.51.00?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RavenNuke(tm) v2.5x

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©