• Resolved Rick

    (@murlyn)


    So it looks like there’s an issue with redeclaration in the prestashop revslider module. I think they might have just used the same function names when integrating revslider with prestashop and then those that are missing in prestashop and default in wordpress, they just added.. is there any workaround for this?

    [31-Jul-2020 15:28:56 US/Hawaii] PHP Fatal error: Cannot redeclare wp_localize_script() (previously declared in /home/old.site.com/public_html/blog/wp-includes/functions.wp-scripts.php:193) in /home/public_html/modules/revsliderprestashop/revslider-loader.php on line 1467

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Rick

    (@murlyn)

    Trying to modify the revslider plugin will take a whole lot of renaming dozens of function names, so is there a way to tell the WP plugin that when loading all the Prestashop assets that it skips loading the revslider module?

    Plugin Author aytechnet

    (@aytechnet)

    Hi,

    A simpler solution would be something like :

    if ( !class_exists( 'PrestashopIntegration' ) ) {

    around revsliderprestashop.php at the very beginning (and do not forget to add closing } at the end of file. That way, the module won’t exists at all ? It is not tested, make sure to make a backup copy before modifying any files so that you can restore in case of any error !

    Kind regards,
    Fran?ois.

    Thread Starter Rick

    (@murlyn)

    Ok thank you, that worked! Although I can’t see any changes on the blog at least it’s not getting all the errors ??

    Plugin Author aytechnet

    (@aytechnet)

    Ok thank for your return, so I close the ticket.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Revslider issues’ is closed to new replies.