Plugin Author
Tim W
(@timwhitlock)
Hi. I’m going to need more information about this.
What version are you running? Is this a new problem, or have you used the plugin before? What is in your address bar when you get this error?
Is the file present at src/error/Exception.php under the Loco Translate plugin directory?
Are you able to provide a complete call stack from that uncaught exception? This may be in your error logs, or possibly emailed to you by WordPress?
Failing this, any chance you can debug line 101 in loco.php and see what the $path are $relpath variables are?
Thanks for your prompt reply.
Here are the versions I’m running :
– WordPress 5.5.1
– Theme : Project Largo 0.6.4
– Loco Translate 2.4.2
– PHP 7.3.12
– Hosting : GoDaddy
I’ve been using Loco for at least 6 months, everything was quite and suddenly this error came up yesterday.
I’m getting this error when I use the full domain name on the address bar.
There’s no exception.php file present under the Logo Translate plugin dir. but I got this error details message from GoDaddy :
/var/www/wp-content/plugins/loco-translate/loco.php dosyasının 101 satırında E_ERROR tipinde bir hata oluştu. Hata iletisi: Uncaught Error: Class ‘Loco_error_Exception’ not found in /var/www/wp-content/plugins/loco-translate/loco.php:101
Stack trace:
#0 /var/www/wp-content/plugins/loco-translate/loco.php(149): loco_include(‘src/error/Excep…’)
#1 [internal function]: loco_autoload(‘Loco_error_Exce…’)
#2 /var/www/wp-content/plugins/loco-translate/loco.php(101): spl_autoload_call(‘Loco_error_Exce…’)
#3 /var/www/wp-content/plugins/loco-translate/loco.php(149): loco_include(‘src/hooks/LoadH…’)
#4 [internal function]: loco_autoload(‘Loco_hooks_Load…’)
#5 /var/www/wp-content/plugins/loco-translate/loco.php(170): spl_autoload_call(‘Loco_hooks_Load…’)
#6 /var/www/wp-settings.php(377): include_once(‘/var/www/wp-con…’)
#7 /var/www/wp-config.php(97): require_once(‘/var/www/wp-set…’)
#8 /var/www/wp-load.php(37): require_once(‘/var/www/wp-con…’)
#9 /var/www/wp-admin/admin.php(34): require_once(‘/var/www/wp-loa…’)
#10 /var/www/wp-admin/index.php(10): require_once(‘/var/www/wp-adm…’)
#11 {main}
thrown
Plugin Author
Tim W
(@timwhitlock)
Thanks for the information.
It’s failing to load the first file it needs (src/hooks/LoadHelper.php) then fails to load the error to tell you about the error.
I think you might have broken or partial install. As you are running 2.4.2 and the latest release is 2.4.3 I recommend you upgrade the plugin now and see if this fixes your problem.
If not, we need to find out why the files can’t be found. Possibly due to some odd path resolution, or some permissions error. I can’t guess right now. Get back to be on the above first and we’ll go from there.
Currently I can’t access the WordPress control panel, is there a way to upgrade version 2.4.3 via ftp?
Plugin Author
Tim W
(@timwhitlock)
Manual upgrade solved the problem. Thank you very much for prompt and wonderful support.