• moved server and PHx just stopped working#

  • rootsdiv Reply #1, 4 months, 1 week ago

    Reply
    Hi all,

    I recently moved an Evo 1.0.5 site to a new server and PHx has stopped working. Haven't changed a thing with PHx in the manager, but any data previously generated by PHx is just not appearing at the new location.

    Here's the current server setup:
    Apache version 2.2.21
    PHP version 5.3.8
    MySQL version 5.1.56-log

    The phx directory is set to 755, Template Service Events set at OnParseDocument.

    Here's the previous server setup:
    Apache: 2.2.3
    PHP version 5.2.17
    MySQL version 5.0.77

    Could the server difference here be causing the problem?

    Thanks in advance


  • Eoler Reply #2, 4 months, 1 week ago

    Reply
    Quote from: rootsdiv at Jan 16, 2012, 05:00 AM
    Hi all,
    I recently moved an Evo 1.0.5 site to a new server and PHx has stopped working. Haven't changed a thing with PHx in the manager, but any data previously generated by PHx is just not appearing at the new location.

    Here's the current server setup:
    PHP version 5.3.8

    Here's the previous server setup:
    PHP version 5.2.17

    Could the server difference here be causing the problem?

    Yes - probably the PHP version. Anything noteworthy inside Reports|System Events ?


  • rootsdiv Reply #3, 4 months ago

    Reply
    Thanks for replying. There's loads of System Event entries for PHx, 14 pages to be precise. Here's an example:
    syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING
    
    Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING in /home/behrenss/public_html/manager/includes/document.parser.class.inc.php(790) : eval()'d code on line 10
    

    Any ideas from this?
    I could most likely get the host to upgrade the php version, they're great for support.
    Thanks


  • Eoler Reply #4, 4 months ago

    Reply
    Quote from: rootsdiv at Jan 18, 2012, 08:43 AM
    syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING
    Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING in
    /home/behrenss/public_html/manager/includes/document.parser.class.inc.php(790) : eval()'d code on line 10
    Any ideas from this?

    Hm, something is quite wrong on the line 10 of an unknown PHx custom modifier / snippet.
    It could be any of the following:
    - phx:custom_mod snippet was saved while PHP Magic Quotes on (default on 5.3, needs to be off)
    - PHx plugin files damaged
    ...etc

    I could most likely get the host to upgrade the php version, they're great for support.

    You mean downgrade back to PHP5.2?


  • rootsdiv Reply #5, 4 months ago

    Reply
    Hi, sorry for the delayed response.

    It's strange as I simply did a straight forward port, didn't apply any exotic chmod setting, and I certainly haven't changed any code.

    Yes - probably the PHP version
    Which version would you recommend?

    I guess a possible solution would be to just rename this install of PHx to make it invisible, and then do a fresh PHx install and see if it works. That way we'd find out if it's a server issue - a process of elimination. Sound like a plan to you?


  • BobRay Reply #6, 4 months ago

    Reply
    Yes, there may be an updated version of PHX that works with more recent PHP versions.

    BTW, I think I have seen that error caused by magic_quotes_gpc being turned on.

    Another option would be to paste the PHX code into a really good code editor (e.g., PhpStorm, NetBeans, or PhpEd) and see if it highlights any errors.

    FYI, MODX Revolution has PHX built into the core.


    ---------------------------------------------------------------------------------------------------------------
    PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
    MODx info for everyone: http://bobsguides.com/MODx.html


  • rootsdiv Reply #7, 4 months ago

    Reply
    Hi BobRay,

    Thanks for the reply, was away from the site for the entire weekend, lucky me I'll act on what you say here, magic quotes/error highlighting etc.

    Regarding PHx in Revo, I have seen that before, probably posted by you - so can I assume that if i run a PHx call in Revo, without adding any extra/plugin, that it would work just the same as it would in Evo?

    (you may have mentioned this in your book, which I'm about to buy)