TYPO3 DCE with fatal error in typo3temp output_tca_and_flexform.php - typo3

Version
TYPO3: 8.5.34
PHP: 7.4
DCE: 2.6.1
I get the following error message intermittently.
Fatal error: require_once(): Failed opening required
'/public/typo3temp/var/Cache/cache_dce/output_tca_and_flexform.php'
My website is then broken and can only be restored by deleting the TYPO3 cache.

Related

Fatal error: Uncaught Error: Class "DOMDocument"

Looking for some help with this error. I'm running Ubuntu 20.04 on an EC2. I have PHP 8.0 installed with DOM and XML modules installed and loaded. phpinfo() shows the modules loaded but I'm still getting Fatal error: Uncaught Error: Class "DOMDocument". I have restarted apache.
I just rebooted the EC2 instance and tested the page again and now it's working.

Magento 2.2.7 MAGENTO di:compile STOPS AT 1/7 PROCESS

I'm upgrading from Magento 2.1.7 to Magento 2.2.7 and PHP 7.1, When I run " php bin/magento setup:di:compile" it stops at 1/7 and
I get the following error:
PHP Fatal error: Class 'Magento\SalesRule\Observer\SalesOrderAfterPlaceObserver' not found in /home/xxxxxxx/public_html/app/code/Amasty/Promo/Observer/FixCouponsUsageObserver.php on line 19
I'm using the following Amasty versions:
amasty/module-special-promo: "2.2.1",
amasty/promo: "1.4.0",
amasty/base: 1.4.10
As a result of this I'm getting the following error when checking out:
code 500
message Fatal Error: 'Class 'Magento\SalesRule\Observer\SalesOrderAfterPlaceObserver' not found' in '/home/mthabisi/projects/oliversweeney/vendor/amasty/promo/Observer/FixCouponsUsageObserver.php' on line 19
When I have this type of error I follow those steps:
1 : Delete de var/di and var/generation folders and recompile.
2 : Check if the class "Magento\SalesRule\Observer\SalesOrderAfterPlaceObserver" Still exist. It could have been deleted or renamed in versions higher than 2.1.7
3 : If the class does not exist, update your plugin. The version of amasty you are using might only works with version prior to 2.2

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/gd2'

I recently bought a new Macbook pro with php 7.1 installed and everything was working fine since I tried to upgrade php to 7.2 using homebrew. When I try to show my version of php with php -v, and it works but it returns me the following warnings :
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/extensions/no-debug-non-zts-20160303/gd2' -
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/gd2, 0x0009):
closured error in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/extensions/no-debug-non-zts-20160303/mbstring' -
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/mbstring,
0x0009): closured error in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/extensions/no-debug-non-zts-20160303/mysqli' -
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/mysqli,
0x0009): closured error in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/extensions/no-debug-non-zts-20160303/pdo_mysql' -
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/pdo_mysql,
0x0009): closured error in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/extensions/no-debug-non-zts-20160303/sockets' -
dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/sockets,
0x0009): closured error in Unknown on line 0
It seems to be an error with gd2, mbstring, mysqli, pdo_mysql and sockets files but they do not exist on the no-debug-non-zts-20160303/ folder...
Is there a way using homebrew to reinstall all these missing files ?
Thanks

Prestashop PHP Fatal error: Uncaught Error: Class 'Tools'

Having this error on latest prestashop version:
PHP Fatal error: Uncaught Error: Class 'Tools' not found in /home/domain_name/config/config.inc.php:86
thrown in /home/domain_name/config/config.inc.php on line 86
Prestashop version is 1.7.1.2.
I tried to download this version again and replaced config/folder.
This didnt work.
Have no clue what to do
First, you have to install the Prestashop 1.7.1.2 by giving permission 0755 to folder. Then try to replace the config folder.
Note: Make sure that you are replaced the folder from Prestashop 1.7.x.x not from Prestashop 1.6 or 1.5.
Try to delete /var/cache (for 1.7)
And/or check please:
File owner and permissions,
Is there classes/Tools.php?
Replace all files with the same version.

Compser is updating with some warnings

This happens in my mac osx. This is regarding zend framework 3.
When I update the composer some warnings are occur.
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.15_8/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.so' - dlopen(/usr/local/Cellar/php70/7.0.15_8/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.so, 9): image not found in Unknown on line 0
after that when the page is refreshing this error occur.
Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found in /Users/ishara/Documents/workspace/leapx-portal/vendor/mongodb/mongodb/src/Client.php on line 81
Error: Class 'MongoDB\Driver\Manager' not found in /Users/ishara/Documents/workspace/leapx-portal/vendor/mongodb/mongodb/src/Client.php on line 81
This has nothing to do with zendframework 3.
PHP Warning: PHP Startup: Unable to load dynamic library mcrypt.so
This is probably caused by not having the PHP mcrypt extension installed.
Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found
According to the mongodb/mongodb package, you need to install the PHP mongodb extension.