Servererror: Wrong php-Version

Million Dollar Script Forums Bug Reports Servererror: Wrong php-Version

This topic contains 13 replies, has 2 voices, and was last updated by  Ryan 3 years, 4 months ago.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1194

    Herbert Bohlscheid
    Participant

    Hi community
    first of all sorry about my bad English, but I hope I can explain my problem:
    I installed the script and there occured no problems. But when users want to buy pixels then occures an “internal server-error in the file “get_pixels.php” and also in some other files.
    I tried to run the script with an older php-Version: then the millionDollarScript works.
    Unfortunally I’cant change the current php-Version (5.4) to an older version, because our cms-System in the same website works with 5.4.
    Is there any solution or hint?

    #1195

    Ryan
    Keymaster

    Have you tried the development snapshot yet?

    If you have then please post the full error you get which you should be able to find in your web server’s error log file.

    #1196

    Herbert Bohlscheid
    Participant

    Hi
    thanks a lot for Your answer. Then error-message is:

    PHP Strict Standards: Only variables should be passed by reference in C:Inetpubvhostskkht.dehttpdocsincludefunctions.php on line 1282

    I hope you can help me…

    #1197

    Ryan
    Keymaster

    Have you tried the development snapshot?

    #1198

    Herbert Bohlscheid
    Participant

    Shame on me, but how can I manage developement snapshot? Is it an external tool?

    #1199

    Ryan
    Keymaster

    You can download it here: http://www.milliondollarscript.com/downloads/million-dollar-script/million-dollar-script-svn-snapshot/

    It basically takes a download from github which is the latest source code.

    #1202

    Herbert Bohlscheid
    Participant

    Oh I understand.
    Yes I installed this version. (date of Files is the 1th of septembre in 2013 (Timestemp 15:09)

    #1203

    Ryan
    Keymaster

    So you still have the error with the development snapshot and PHP 5.4 then?

    #1204

    Herbert Bohlscheid
    Participant

    So it is

    #1205

    Ryan
    Keymaster

    Can you please paste that line from the file?

    C:Inetpubvhostskkht.dehttpdocsincludefunctions.php on line 1282

    #1206

    Herbert Bohlscheid
    Participant

    Hallo Ryan

    Line 1282 in include/functions.php:

    [code] $action = array_pop($a = explode(‘?’, $action)); // strip parameters
    [/code]

    Is this helpful?

    #1208

    Ryan
    Keymaster

    Thank you. Please try to replace that line with this and see if you still get the error:

    [code]
    // strip parameters
    $a = explode(‘?’, $action);
    $action = array_pop($a);
    [/code]

    #1209

    Herbert Bohlscheid
    Participant

    GREAT! IT WORKS!!
    Thanks a lot.

    Herby

    #1210

    Ryan
    Keymaster

    Good to hear.

    You should know that your PHP is running with E_STRICT in the error_reporting directive which usually is used for development. The php.ini should be modified for production use by using this value instead: error_reporting = E_ALL & ~E_DEPRECATED

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.