• Resolved Webmaster

    (@mattstone-plx)


    We already have one of your other plugins installed (Easy Testimonials) which seems to be causing a conflict with Before and After preventing us from installing the plugin. The error message is as follows:

    Fatal error: Cannot declare class GP_Sajak, because the name is already in use in /srv/users/plx/apps/playground/public/wp-content/plugins/easy-testimonials/include/lib/GP_Sajak/gp_sajak.class.php on line 2

    https://ww.wp.xz.cn/plugins/before-and-after/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Matt!

    Oh no!

    There *should* be a if ( !class_exists('GP_Sajak') ): on line 2 of gp_sajak.class.php, but it sounds like it is missing.

    As a quick patch, you can add that line — ie, make the top of the file read:

    <?php
    if ( !class_exists('GP_Sajak') ):
    
    	class GP_Sajak
    	{

    and be sure to add the corresponding endif;//class_exists to the bottom of the file.

    The code in Before & After has this but I believe it is missing from Easy Testimonials.

    I sincerely apologize for the problem.

    All the best,
    Richard

    Plugin Contributor richardgabriel

    (@richardgabriel)

    Hey Matt!

    We’ve addressed this in our other plugin, Easy Testimonials.

    Thanks for the report!

    All the best,
    Richard

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error on plugin installation: Cannot declare class GP_Sajak’ is closed to new replies.