Hi, there...
Earlier this week, this seite went down: hidden link
The message was that there was a critical error on the site. I thought the problem was the site had been hacked. I had it checked out and they told me it was the Toolset Types plugin causing this error and disabled it.
I tried to enable the plugin to troubleshoot, but it caused a critical error with the site again. Can you help?
LBH
Hello and thank you for contacting the Toolset support.
To investigate the crashing we'll need to activate PHP debugging and try to reproduce the issue in order to generate entries in the log files. From there we can understand what's conflicting with Toolset to crash the site.
You can allow us temporary access to your website(WordPress and FTP) or share a copy of that we can analyze locally. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
Thank you for the credentials. Those for WordPress admin were not working for me so I created a new user programmatically to work with it. Please remove it from your system(user: jamal.b).
I enabled PHP debugging and I activated the Types plugin, and these are the errors generated:
Warning: include_once(/var/www/wp-content/plugins/types/application/controllers/cache/shortcode_generator/postmeta.php): failed to open stream: No such file or directory in /var/www/wp-content/plugins/types/vendor/toolset/toolset-common/utility/autoloader.php on line 127
Warning: include_once(): Failed opening '/var/www/wp-content/plugins/types/application/controllers/cache/shortcode_generator/postmeta.php' for inclusion (include_path='.:/opt/remi/php73/root/usr/share/pear:/opt/remi/php73/root/usr/share/php:/usr/share/pear:/usr/share/php') in /var/www/wp-content/plugins/types/vendor/toolset/toolset-common/utility/autoloader.php on line 127
Fatal error: Uncaught ReflectionException: Class OTGS\Toolset\Types\Controller\Cache\ShortcodeGenerator\Postmeta does not exist in /var/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/CachingReflector.php:89 Stack trace: #0 /var/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/CachingReflector.php(89): ReflectionParameter->getClass() #1 /var/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php(517): OTGS\Toolset\Common\Auryn\CachingReflector->getParamTypeHint(Object(ReflectionMethod), Object(ReflectionParameter)) #2 /var/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php(464): OTGS\Toolset\Common\Auryn\Injector->buildArgFromTypeHint(Object(ReflectionMethod), Object(ReflectionParameter)) #3 /var/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php(404): OTGS\Toolset\Common\Auryn\Injector->provisionFuncArgs(Object(ReflectionMethod), Array, Array) #4 /var/www/wp-content/plugins in /var/www/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php on line 412
It seemed to me that the Types installation is not complete. Some files are missing. So, I deleted it and installed the last version manually. Then I activated the plugin and the website is working as expected.
I noticed that the links on the homepage were giving 404. (hidden link) I saved the permalinks settings twice to flush the rewrite rules and it fixed those pages too.
All the best,
Jamal