• Resolved kcumings

    (@kcumings)


    When I updated wordpress, wpjaipho triggered a fatal error and crashed the site. When I removed it and tried to re-activate, it gave me this message: Parse error: syntax error, unexpected T_FUNCTION in /home/chrisb8/public_html/wp-content/plugins/wpjaipho/wpjaipho.php on line 59
    my site is chrisbarnestrumpet.com
    I’ve since added photoswipe to restore some of the functionality, but I like wpjaipho better and would like to use it if possible.
    Thank you very much for your work on this!

    https://www.ads-software.com/plugins/wpjaipho/

Viewing 1 replies (of 1 total)
  • Plugin Author Tihomir Dmitrovi?

    (@tolecar)

    Hi,
    You have pre 5.3 PHP version.

    For now, you’ll have to edit wpjaipho.php. Just follow this two steps:

    1. paste this function at the end of file

    function jaipho_carousel_disable_filter()
    { return true; }

    2. Change line 59 from

    add_filter( 'jp_carousel_maybe_disable', function () { return true;});

    to

    add_filter( 'jp_carousel_maybe_disable', 'jaipho_carousel_disable_filter');

    Next update will contain this changes.

Viewing 1 replies (of 1 total)
  • The topic ‘plugin could not be activated because it triggered a fatal error’ is closed to new replies.