Skip Navigation

[Resolved] PHP Fatal error when trying to edit a post

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by dannyv 4 years, 8 months ago.

Author
Posts
#1842869

Hi,
I've upgraded from Types 2.x to 3.4.2. but I get a PHP Fatal error when trying to edit a post in WordPress. If I disable Yoast SEO (free version, updates to most recent version) I CAN edit a post again.
I've done some logging (see below).
All my plugins are updated to their latest version so I hope your advice is not disable all plugins and enable them one by one agian 🙂
Please help.
Regards,
Danny
The Netherlands

[13-Nov-2020 00:57:44 UTC] PHP Warning: include_once(/home/u27475p33475/domains/mijnoisterwijk.nl/public_html/wp-content/plugins/types/application/models/compatibility/yoast/field/factory.php): failed to open stream: No such file or directory in /home/u27475p33475/domains/mijnoisterwijk.nl/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/utility/autoloader.php on line 127
[13-Nov-2020 00:57:44 UTC] PHP Warning: include_once(): Failed opening '/home/u27475p33475/domains/mijnoisterwijk.nl/public_html/wp-content/plugins/types/application/models/compatibility/yoast/field/factory.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/u27475p33475/domains/mijnoisterwijk.nl/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/utility/autoloader.php on line 127
[13-Nov-2020 00:57:44 UTC] PHP Fatal error: Uncaught ReflectionException: Class OTGS\Toolset\Types\Compatibility\Yoast\Field\Factory does not exist in /home/u27475p33475/domains/mijnoisterwijk.nl/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/CachingReflector.php:89
Stack trace:
#0 /home/u27475p33475/domains/mijnoisterwijk.nl/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/CachingReflector.php(89): ReflectionParameter->getClass()
#1 /home/u27475p33475/domains/mijnoisterwijk.nl/public_html/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 /home/u27475p33475/domains/mijnoisterwijk.nl/public_html/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 /home/u27475p33475/domains/mijnoisterwij in /home/u27475p33475/domains/mijnoisterwijk.nl/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php on line 412

#1843131

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Danny

Making such a big leap in versions can be problematic, though I haven't seen this particular issue before.

I think we'd need a copy of your site in this case to be able to analyse the problem.

Please share a copy as described here: hidden link

Be sure to exclude the uploads directory to keep the filesize down. You can share a link to dropbox or similar here and it will be hidden.

#1843527

I fixed it! What a struggle! The solution: the FTP-transfer of about 5 Toolset-files failed and I didnt notice. Stupid 🙂 It were 5 /vendor/.../yoast-files. Thats the reason for the fatal errors I got.
Solved!
Thanks for your time.
Regards,
Danny