PDA

View Full Version : PHP 5.4 Support



Dovlet Hojayev
November 19, 2012, 10:01 PM
Hi everyone. I just installed flynax code on my local machine to debug and develop new features.
I have PHP 5.4 installed so i had some errors first.

I have fixed everything and just got that someone may need my help.
So if you have troubles in installing your flynax on PHP 5.4 feel free to ask for a help.

Please copy your error log here with a question.

Thank you!

Milea Ionut
January 16, 2013, 01:07 PM
I have tried to install it on wamp but with no luck!

Peter Jonsson
January 16, 2013, 01:40 PM
I have tried to install it on wamp but with no luck!

Maybe should add what kind of problem you have than just, "dont work".

Milea Ionut
January 16, 2013, 02:45 PM
I have some problems configuring wamp for flynax. Check the image.
329
Thanks!

Milea Ionut
January 16, 2013, 02:46 PM
I have tried to enable curl but i am getting a lot of errors. The PHP version is 5.4.3.

Peter Jonsson
January 16, 2013, 05:17 PM
You have a mysql version that aren't working with Flynax. And you have to install IonCube. Just google IonCube wamp guide
And you dont have to install curl

Milea Ionut
January 24, 2013, 03:46 PM
I have installed mysql 5.1.x but still the same error with Mysql. Ioncube is ok now.

Mike
January 25, 2013, 03:24 AM
I can list few changes they will make flynax working with php 5.4, i played with it already. as i remember just 2-3 changes

php 5.4.11
mysql 5.5

Pablo Meyer
January 28, 2013, 05:43 PM
Mike F,
could you please post those changes?

Thanks,

Mike
February 4, 2013, 06:02 AM
Sorry for delay, here they are:


1. includes/classes/rlHook.class.php -- function load -- replace the function completely with the code



function load( $name = false, &$param1, &$param2, &$param3, &$param4, &$param5 )
{
if ( is_array($name) )
{
$name = $name['name'];
$hooks = $GLOBALS['hooks'];
}
else
{
$hooks = $this -> rlHooks;
}

$code = isset($hooks[$name]) ? $hooks[$name] : '';

if ( !empty($code) )
{
if ( is_array($code) )
{
foreach( $code as $item )
{
$func = "{$name}Hook". $this -> index;
$wrapper = "function {$func}(&\$param1, &\$param2, &\$param3, &\$param4, &\$param5) { ". PHP_EOL;
$wrapper .= "[code]". PHP_EOL;
$wrapper .= "}";
eval(str_replace('[code]', $item, $wrapper));
$func($param1, $param2, $param3, $param4, $param5);
$this -> index++;
}
}
else
{
$func = "{$name}Hook". $this -> index;
$wrapper = "function {$func}(&\$param1, &\$param2, &\$param3, &\$param4, &\$param5) { ". PHP_EOL;
$wrapper .= "[code]". PHP_EOL;
$wrapper .= "}";
eval(str_replace('[code]', $code, $wrapper));
$func($param1, $param2, $param3, $param4, $param5);
$this -> index++;
}
}
}


2. includes/classes/rlDebug.class.php -- line 37, line 43: function rlDebug


set_error_handler(array( "rDebug", "errorHandler"), E_ALL);
to

set_error_handler(array( $this, "errorHandler"), E_ALL);



Just installed clean 4.1 on php 5.4 - it works after the changes. If you still have problems let me know error message you see i will try to help.

Jason Kitchens
December 1, 2013, 10:47 PM
I have made these changes and cannot get Flynax to work with php5.4

Tariq hamed Ahmed
December 30, 2013, 04:03 PM
I made those changes and no luck :( and my old website has blank page, please help :((((

Dovlet Hojayev
December 30, 2013, 04:04 PM
Hi, Tariq!

First of all enable Debug mode in /includes/config.inc.php

Than try to load a page and give me the output. I will help you to solve the problem!

Tariq hamed Ahmed
December 30, 2013, 04:11 PM
Hello,

This is the result:

The query took 0.000133 seconds to load.
SET NAMES `utf8`

The query took 0.000076 seconds to load.
SET sql_mode = ''


Parse error: syntax error, unexpected end of file in /home/*****/public_html/egypt/includes/classes/rlHook.class.php on line 154

Thank you,

Mike
January 6, 2014, 11:20 AM
Hello,

Seems rlHook file corrupted .

Please re-upload it from backup or flynax package

includes/classes/rlHook.class.php

PGGO
August 20, 2014, 04:34 AM
Sorry for delay, here they are:

Hi Mike,

Can you please provide a similar solution for PHP 5.5.15?

Viktor
August 20, 2014, 08:23 AM
Hello,

Would you please provide me ftp access to my PM and I will check your site.

PGGO
September 29, 2015, 08:00 PM
Hi Mike,

Can you please provide some instructions for v4.3 version to support PHP5.6?

PS. my site is currently down due to incompatibility.

Mike
September 30, 2015, 04:44 AM
Hello,

I don't have ready instructions unfortunately, you may try what i suggested earlier in the thread.

Or you can provide me with errors you have or better ftp login details so we can try to fix it. It would be much easier for us than trying to suggest solutions

PGGO
October 9, 2015, 09:08 PM
Hi Mike,

My site is still unavailable due to PHP5.6 incompatibility. Can you please suggest something for a fix, so i can try to fix it myself? Thanks.

The browser error as following:
Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /home/username/public_html/includes/classes/rlHook.class.php on line 159

Viktor
October 10, 2015, 09:11 AM
Hello,

Would you please send ftp access to my PM?