admin管理员组

文章数量:1134247

I got this from an update that has crashed my site:

Fatal error: Only variables can be passed by reference in /web/htdocs/www.thespectrumofriemannium/home/wordpress/wp-content/plugins/learnpress/inc/jwt/includes/class-jwt-public.php on line 309

There has been a critical error on this website. Please check your site admin email inbox for instructions.

HOW CAN I SOLVE IT?

HELP! Please...

I got this from an update that has crashed my site:

Fatal error: Only variables can be passed by reference in /web/htdocs/www.thespectrumofriemannium.com/home/wordpress/wp-content/plugins/learnpress/inc/jwt/includes/class-jwt-public.php on line 309

There has been a critical error on this website. Please check your site admin email inbox for instructions.

HOW CAN I SOLVE IT?

HELP! Please...

Share Improve this question edited Aug 23, 2023 at 0:47 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Aug 22, 2023 at 9:21 riemanniumriemannium 1011 bronze badge 3
  • If you can't get an updated version of LearnPress you'll need to show us line 309 of that file, and a few lines either side for context. Please edit them into the question using the 'edit' link at the bottom. – Rup Commented Aug 22, 2023 at 15:04
  • Here's the solution though: turn a constant you're passing to a function as a reference parameter into a variable. stackoverflow.com/a/17279734 Then try and understand what you should be doing with the result it's giving you. – Rup Commented Aug 22, 2023 at 15:05
  • This specific error was fixed in LearnPress 4.2.3.4. – Rup Commented Aug 23, 2023 at 12:49
Add a comment  | 

1 Answer 1

Reset to default 1

As with any plugin error, it's often helpful to delete the plugin files. You can do this on most hosts with FTP or the host's file manager.

Once you've deleted them, you can immediately re-download a fresh copy of the plugin version you want to use - you can try the latest version again or roll back to a known good old version, and upload via FTP or the file manager. Then log in and confirm everything is working. If you used an old version, you can then try updating the plugin again - with your downloaded copy still ready in case you need to roll it back again.

If the problem persists after reinstalling the new version, contact the plugin's support channels directly.

本文标签: pluginsLearnpress FATAL ERROR