• Resolved Pitabas

    (@pitabas106)


    Dear Team,

    I have been using the Testimonial Free plugin for the past few years, and it has been an amazing tool. However, after recently upgrading to PHP 8.2, I am encountering the following error:

    Fatal error: Cannot declare class ShapedPlugin\TestimonialFree\Admin\Gutenberg_Block, because the name is already in use in /testimonial-free/src/Admin/Gutenberg_Block.php on line 24

    I would appreciate your assistance in resolving this issue. Looking forward to your support.

    Best regards,
    Pitabas

    • This topic was modified 1 year, 4 months ago by Pitabas.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Pitabas

    (@pitabas106)

    I have implemented the following solutions, and it works for me.

    Solution 1:
    In this file:wp-content/plugins/testimonial-free/src/Admin/Gutenberg_Block.php Find this line:class Gutenberg_Block replace with the below line:

    if (!class_exists('ShapedPlugin\TestimonialFree\Admin\Gutenberg_Block')) { class Gutenberg_Block { // Class code here } }

    Solution 2:
    In this file: /wp-content/plugins/testimonial-free/src/Admin/GutenbergBlock/Gutenberg_Block_Init.php replace with the below line:

    if (!class_exists('ShapedPlugin\TestimonialFree\Admin\GutenbergBlock\Gutenberg_Block_Init')) { class Gutenberg_Block_Init { // Class code here } }

    Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @pitabas106,

    Thank you for providing the details of the errors and the potential solutions. We have submitted the recommendations to the development team and will conduct the essential investigations to address the issue.

    Hopefully, the errors will be addressed and a new version of the plugins will be released.

    Have a nice day!

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

The topic ‘Fatal error: Cannot declare class TestimonialFree\Admin\Gutenberg_Block’ is closed to new replies.