• Resolved wanindra

    (@wanindra)


    Hello, a site of mine has been using your plugin for more than a year now. Last week, there was an update to version 2.0.2 and I am seeing a crash on load.

    The error can be seen in the log:

    mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined method Composer\\Autoload\\ClassLoader::setClassMapAuthoritative() in /home/fms/public_html/wp-content/plugins/tablepress/libraries/composer/autoload_real.php:34
    
    [Tue Jan 10 00:39:29.409480 2023] [fcgid:warn] [pid 18319] [client xxxxxxxxxxx:65463] mod_fcgid: stderr: Stack trace:
    [Tue Jan 10 00:39:29.409484 2023] [fcgid:warn] [pid 18319] [client xxxxxxxxxxx:65463] mod_fcgid: stderr: #0 /home/xxx/public_html/wp-content/plugins/tablepress/libraries/autoload.php(25): ComposerAutoloaderInit52642f55db3d786d0497624deacbe17e::getLoader()
    [Tue Jan 10 00:39:29.409488 2023] [fcgid:warn] [pid 18319] [client xxxxxxxxxxx:65463] mod_fcgid: stderr: #1 /home/xxx/public_html/wp-content/plugins/tablepress/classes/class-tablepress.php(203): require_once('/home/xxx/publi...')
    [Tue Jan 10 00:39:29.409493 2023] [fcgid:warn] [pid 18319] [client xxxxxxxxxxx:65463] mod_fcgid: stderr: #2 /home/xxx/public_html/wp-content/plugins/tablepress/classes/class-evaluate-phpspreadsheet.php(31): TablePress::load_file('autoload.php', 'libraries')
    [Tue Jan 10 00:39:29.409497 2023] [fcgid:warn] [pid 18319] [client xxxxxxxxxxx:65463] mod_fcgid: stderr: #3 /home/xxx/public_html/wp-content/plugins/tablepress/classes/class-tablepress.php(231): TablePress_Evaluate_PHPSpreadsheet->__construct(NULL)
    [Tue Jan 10 00:39:29.409501 2023] [fcgid:warn] [pid 18319] [client xxxxxxxxxxx:65463] mod_fcgid: stderr: #4 /home/xxx/public_html/wp-content/plugins/tablepress/classes/class-evaluate.php(76): TablePress::load_class('TablePress_Eval...', 'class-evaluate-...', 'classes')
    [Tue Jan 10 00:39:29.409505 2023] [fcgid:warn] [pid 18319] [client xxxxxxxxxxx:65463] mod_fcgid: stderr: #5 /home/xxx/public_html/wp-content/plugins/tablepress/classes/class-render.php in /home/xxx/public_html/wp-content/plugins/tablepress/libraries/composer/autoload_real.php on line 34

    Disable the table press would stop the crashing, but obviously not loading my tables anymore.

    
    · TablePress: 2.0.2 
    · TablePress (DB): 51 
    · TablePress table scheme: 3 
    · Plan: Free 
    · Plugin installed: 2021/11/24 13:12:23 
    · WordPress: 6.1.1 
    · Multisite: no 
    · PHP: 7.2.24-0ubuntu0.18.04.13 
    · mysqli Extension: true 
    · mySQL (Server): 5.7.39-0ubuntu0.18.04.2 
    · mySQL (Client): mysqlnd 5.0.12-dev - 20150407 - 
    · ZIP support: no 
    · UTF-8 conversion: yes 
    · WP Memory Limit: 512M 
    · Server Memory Limit: 512M 
    · WP_DEBUG: false 
    · WP_POST_REVISIONS: true

    Any ideas?

    Thank you in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    I’m not really sure what’s going on here. It could be that the file that defines this method somehow does not exist. Can you therefore maybe re-install TablePress from a fresh download?

    Also, as the PHP version that you are using is rather old, can you maybe check if you can update e.g. to PHP 7.4 or even PHP 8.0? (This should actually not have an influence, but it’s worth a try.)

    Also, can you please try again after temporarily deactivating all other plugins and after switching to a WordPress default theme like Twenty Twenty? That would help if there is some sort of conflict here.

    Regards,
    Tobias

    Thread Starter wanindra

    (@wanindra)

    Hi @tobiasbg thank you so much for getting back so quickly. I have the feeling that the class had been loaded and the setClassMapAuthoritative is just not there. I am going to find out more.

    I did download a fresh plugin folder and installed it but it made no difference. Thank you again and I will post my finding here.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    that would be strange. That function is clearly defined in the code, see https://plugins.trac.ww.wp.xz.cn/browser/tablepress/tags/2.0.2/libraries/composer/ClassLoader.php#L345

    My feeling is that another plugin on your site is maybe also including a Composer autoloader. Can you maybe try find out more about that, e.g. by searching for Composer in all PHP files of the plugins folder? Or deactivate plugins one by one, until the error disappears?

    Regards,
    Tobias

    Thread Starter wanindra

    (@wanindra)

    Hello again, yes, we have:

    all-in-one-seo-pack, really-simple-ssl, updraftplus, wordfence and jetpack. I am looking at them now.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I searched for this error some more and it indeed looks like this is caused by another plugin using an older version of Composer, see https://github.com/wp-media/imagify-plugin/issues/372

    That also seems to offer a workaround, which I will look at. Maybe I can then prevent this from happening.

    Regards,
    Tobias

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I just published TablePress 2.0.3 which adds protection against this error.

    Can you maybe try again after updating?

    Best wishes,
    Tobias

    Thread Starter wanindra

    (@wanindra)

    What a great support.

    That resolved the problem which I had.

    Thank you again @tobiasbg

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    perfect! Thanks for the confirmation!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

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

The topic ‘2.0.2 setClassMapAuthoritative Not Found’ is closed to new replies.