• Resolved Elad Salomons

    (@selad)


    Hi,

    Blog was updated to 5.3. When trying to install the plugin I get:
    Fatal error: Cannot use Barn2\Lib\Plugin\Plugin as Plugin because the name is already in use in /home/***/public_html/***/wp-content/plugins/posts-data-table/src/Frontend_Scripts.php on line 7

    Any help is appreciated!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello, I had the same problem, try to update your version of PHP, the version recommend by wordpress today is 7.3 .

    Thread Starter Elad Salomons

    (@selad)

    Thank you @sip33, upgrading to PHP7 did the trick.

    Plugin Support E.J. Padero

    (@barn2support)

    Hi, @selad.

    I’m sorry to hear you’re having difficulty with a Fatal Error when trying to install the plugin on your site that’s on WordPress 5.3. Thanks for getting in touch.

    We have already tested all our plugins, including the free ones, on test sites that run on the latest version of WordPress and found they work as expected and are compatible.

    Hence, the issue you’re experiencing is likely isolated to your site.

    A similar Fatal Error was also being experienced by @sip33, who already has the plugin installed and working on their site prior to updating WordPress. After having done so, the error displayed and the posts table no longer displayed.

    As mentioned in their reply (many thanks and well done!), the issue was resolved by updating the PHP version on their site from 5.1 to 7.3. Note that the plugin details show it to be tested for PHP Version 5.3 or higher/newer (PHP 7.3 compatible).

    I hope this helps. Please let me know how it goes. I’ll mark this as resolved for now.

    Best regards,

    Plugin Support E.J. Padero

    (@barn2support)

    Hi, @selad.

    Thanks for your reply (just saw it now). I’m glad to hear updating to PHP 7 resolved the issue. Kudos to @sip33.

    Cheers!

    minutten

    (@minutten)

    Hi, I also get this error. I also had Posts table installed and after WP upgrade, I cannot even log into wp-admin – it gives me this error.

    @barn2support Can you please advice me what I should do?

    Thread Starter Elad Salomons

    (@selad)

    @minutten you will have to remove the plugin manually. You can do that via FTP or by using your host provided interface.

    minutten

    (@minutten)

    Yes, I have done that by renaming the folder through FTP. Then I was able to acccess the admin.(plugin now manually disabled)

    What should I do next?

    • This reply was modified 5 years ago by minutten.
    Thread Starter Elad Salomons

    (@selad)

    @minutten if you have done that then you should now be able to log into the wp-admin and the blog should be active. What I have done is contacted my host and requested them to upgrade the PHP version on my account to PHP7.x (it was 5 something). Once the PHP version was upgraded I reinstalled the plugin and it worked with no further issues.

    Plugin Support E.J. Padero

    (@barn2support)

    Hi, @minutten.

    I’m sorry to hear you’re having difficulty with a similar error and that you’re unable to login to your site’s wp-admin. Thanks for getting in touch so we can help.

    Thanks for chiming in, @selad. You’re correct that you can try manually removing the plugin either by:

    • Logging in to your site via FTP and deleting/renaming/moving the directory named /wp-content/plugins/posts-data-table/ .
    • Logging in to your site’s cPanel and finding the File Manager and performing the same procedure described above.

    You should then be able to login to your wp-admin. Update the PHP to Version 5.3 or higher/newer up to 7.3. Then reinstall Posts Table with Search & Sort from Plugins > Add New.

    Please let me know how this goes. Marking this thread resolved for now.

    Best regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error after upgrade’ is closed to new replies.