• Resolved makcopernicus

    (@makcopernicus)


    RE: Plugin “Redirection” update (2.8.1 to > 2.9). The upgrade crashed the site with this error…. → Parse error: syntax error, unexpected T_CONST in /home/content/13/9077113/html/wp-content/plugins/redirection/redirection-settings.php on line 3

    I downloaded the zip file & looked at line 3. The download version was the same as the site based plug-in update. → const REDIRECTION_OPTION = ‘redirection_options’;

    Unfortunately, I had to delete the plugin using File Manager.

    I’d LOVE to re-install Redirection once this bug is fixed. Please let me know.

    Thanks,
    Marleen

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author John Godley

    (@johnny5)

    What version of PHP are you using?

    genissonpinheiro

    (@genissonpinheiro)

    Eu também estou com esse problema, alguém pode ajudar??

    Plugin Author John Godley

    (@johnny5)

    Again, what version of PHP are you using?

    genissonpinheiro

    (@genissonpinheiro)

    é a vers?o 5.3

    Thread Starter makcopernicus

    (@makcopernicus)

    Sorry, I replied to the email notice. I’m using 5.3. Sorry for the delay.

    jonathandpenton

    (@jonathandpenton)

    I’m having the same problem. php version 5.6.32

    • This reply was modified 7 years ago by jonathandpenton. Reason: setting up follow-up replies
    Thane

    (@thanewest)

    On php 7.0 also getting errors from this redirect:
    /(\d*)/(\d*)/(.*)
    /$3

    Redirection changes it to:
    /(d*)/(d*)/(.*)

    Which doesn’t work anymore.

    genissonpinheiro

    (@genissonpinheiro)

    Infelizmente tive que desinstalar, tentei de tudo e n?o houve jeito. Agora meu site está normal de novo, o https://www.horadopensador.com

    Plugin Author John Godley

    (@johnny5)

    Hmm, I’ve released 2.9.1 which changes the const to a define. I don’t know why it’s breaking in PHP 5 as the PHP documentation says const is supported in PHP 5.3+. The plugin is tested in PHP 5.4 and that showed no problems.

    Thane

    (@thanewest)

    genissonpinheiro, bom seu site está funcionando agora. talvez este plugin funcione novamente no futuro, você deve certificar-se de que seus redirecionamentos antigos ainda est?o funcionando.

    mbrsolution

    (@mbrsolution)

    Hi, your minimum PHP version should be 5.6. Anything below that is not supported any more and it is unsafe. Please read the following documentation to learn more.

    My humble opinion.

    Kind regards

    Thread Starter makcopernicus

    (@makcopernicus)

    Unfortunately, anyone w/ Godaddy hosting is still on 5.3.

    mbrsolution

    (@mbrsolution)

    @makcopernicus, you might have to move your site to a different host if Godaddy won’t update their servers to PHP 5.6 and above. Hosting companies need to stay up to date for security reasons.

    Kind regards

    jonathandpenton

    (@jonathandpenton)

    Sooo in case this got missed: My php is version 5.6.32. I experienced the same problem as the OP. The problem is resolved in 2.9.1, which (based on very initial testing) is working smoothly.

    That said: makcopernicus, is there any chance that you’re on a GoDaddy Legacy account? These accounts from a previous pricing structure are on different servers. You might be able to update your account and get a more current php without switching hosts.

    Plugin Author John Godley

    (@johnny5)

    Glad it’s working again @jonathanpenton! Hopefully that covers everyone else too and I’ll mark this as resolved.

    And yep, it would be great if all hosts were on more recent versions of PHP. However, given that’s not the case and the minimum version required for WordPress is 5.2 (!) then it’s probably best if a plugin doesn’t break things. My apologies there.

    (PS: Switch to PHP 7 for a speed boost!)

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Update 2.9 crashed site’ is closed to new replies.