Error after Aimeos 19.10 -> 20.4.2 update

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Error after Aimeos 19.10 -> 20.4.2 update

Post by bouuman » 22 May 2020, 21:11

Start situation:
typo_version.PNG
typo_version.PNG (35.3 KiB) Viewed 3445 times

Hello,

i try to Update from 19.10.4 to 20.4.2 like you wrote in the manual.
The Extension Upload+Overwrite showed this exception on first try:
Call to undefined method Doctrine\DBAL\Configuration::getSchemaAssetsFilter()
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to undefined method Doctrine\DBAL\Configuration::getSchemaAssetsFilter() | Error thrown in file /var/www/vhosts/webXXX.linus.sXXXXXXX.de/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php in line 229. Requested URL: https://XXXXXXXXXX.XX/typo3/index.php?r ... ensionFile

then i run the script (circular button), script shows everything "ok" and "done", no errors.
if i Upload + Overwrite again, then the "getSchemaAssetsFilter" error not showing up again and the upload seems to be ok.
Then again circular button.

then i Remove the Aimeos extension template from the root template and add it again, like described.
But mine was looking like this ( i used the preconfigured aimeos typo3 extension when i installed it first time):
1.PNG
1.PNG (39.91 KiB) Viewed 3446 times
Then i get this errors on my page, instead of the shop menu:
2.PNG
2.PNG (9.52 KiB) Viewed 3446 times
if i edit the template and remove the
Bootstrap Package and Aimeos Distribution (aimeos_dist) from the template and leave only Aimmeos Shop configuration (aimeos) then this errros appears in the backend log:

LIVE ERROR Error handler Core: Error handler (FE): PHP Warning: fopen(/var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/flock_b3b32a2d422265cd25c3323ed0157f81): failed to open stream: No such file or directory in /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php line 97
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1518472257: Failed to fetch error page "https://XXXXXXXX.XX", reason: Server error: `GET https://XXXXXXXX.XX` resulted in a `500 Internal Server Error` response: <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" cont (truncated...) | RuntimeException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/frontend/Classes/Controller/ErrorController.php in line 210. Requested URL: https://XXXXXXXX.XX/index.php?id=13&L=0 ... %5D=detail
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294586099: Lock file could not be opened | TYPO3\CMS\Core\Locking\Exception\LockAcquireException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 99. Requested URL: https://XXXXXXXX.XX/
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294586099: Lock file could not be opened | TYPO3\CMS\Core\Locking\Exception\LockAcquireException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 99. Requested URL: https://XXXXXXXX.XX/index.php?id=13&L=0 ... %5D=detail
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294586099: Lock file could not be opened | TYPO3\CMS\Core\Locking\Exception\LockAcquireException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 99. Requested URL: https://XXXXXXXX.XX/
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294586099: Lock file could not be opened | TYPO3\CMS\Core\Locking\Exception\LockAcquireException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 99. Requested URL: https://XXXXXXXX.XX/index.php?id=13&L=0 ... %5D=detail
20:08:33 [0]
LIVE ERROR Error handler Core: Error handler (FE): PHP Warning: fopen(/var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/flock_b3b32a2d422265cd25c3323ed0157f81): failed to open stream: No such file or directory in /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php line 97
20:08:33 [0]
LIVE ERROR Error handler Core: Error handler (FE): PHP Warning: fopen(/var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/flock_b3b32a2d422265cd25c3323ed0157f81): failed to open stream: No such file or directory in /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php line 97
20:08:33 [0]
LIVE ERROR Error handler Core: Error handler (FE): PHP Warning: fopen(/var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/flock_b3b32a2d422265cd25c3323ed0157f81): failed to open stream: No such file or directory in /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php line 97
20:08:33 [0]
LIVE ERROR Error handler Core: Error handler (FE): PHP Warning: fopen(/var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/flock_b3b32a2d422265cd25c3323ed0157f81): failed to open stream: No such file or directory in /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php line 97
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1518472257: Failed to fetch error page "https://XXXXXXXX.XX", reason: Server error: `GET https://XXXXXXXX.XX` resulted in a `500 Internal Server Error` response: <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" cont (truncated...) | RuntimeException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/frontend/Classes/Controller/ErrorController.php in line 210. Requested URL: https://XXXXXXXX.XX/robots.txt
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294586099: Lock file could not be opened | TYPO3\CMS\Core\Locking\Exception\LockAcquireException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 99. Requested URL: https://XXXXXXXX.XX/
20:08:33 [0]
LIVE ERROR Error handler Core: Error handler (FE): PHP Warning: fopen(/var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/flock_b3b32a2d422265cd25c3323ed0157f81): failed to open stream: No such file or directory in /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php line 97
19:57:30 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1518472257: Failed to fetch error page "https://XXXXXXXX.XX", reason: Server error: `GET https://XXXXXXXX.XX` resulted in a `500 Internal Server Error` response: <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" cont (truncated...) | RuntimeException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/frontend/Classes/Controller/ErrorController.php in line 210. Requested URL: https://XXXXXXXX.XX/
19:57:56 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1518472257: Failed to fetch error page "https://XXXXXXXX.XX", reason: Server error: `GET https://XXXXXXXX.XX` resulted in a `500 Internal Server Error` response: <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="robots" cont (truncated...) | RuntimeException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/frontend/Classes/Controller/ErrorController.php in line 210. Requested URL: https://XXXXXXXX.XX/index.php?id=13&L=0 ... %5D=detail
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1395140007: Cannot create directory /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/ | TYPO3\CMS\Core\Locking\Exception\LockCreateException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 65. Requested URL: https://XXXXXXXX.XX/
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1395140007: Cannot create directory /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/ | TYPO3\CMS\Core\Locking\Exception\LockCreateException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 65. Requested URL: https://XXXXXXXX.XX/index.php?id=1
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1395140007: Cannot create directory /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/ | TYPO3\CMS\Core\Locking\Exception\LockCreateException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 65. Requested URL: https://XXXXXXXX.XX/index.php?id=1&ai%% ... n%%5D=list
20:08:33 [0]
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1395140007: Cannot create directory /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/ | TYPO3\CMS\Core\Locking\Exception\LockCreateException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 65. Requested URL: https://XXXXXXXX.XX/
19:57:37
xxxx_xxxxxxxxxxx
LIVE ERROR Error handler Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294586099: Lock file could not be opened | TYPO3\CMS\Core\Locking\Exception\LockAcquireException thrown in file /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php in line 99. Requested URL: https://XXXXXXXX.XX/
19:57:37
xxxx_xxxxxxxxxxx
LIVE ERROR Error handler Core: Error handler (FE): PHP Warning: fopen(/var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3temp/var/lock/flock_b3b32a2d422265cd25c3323ed0157f81): failed to open stream: No such file or directory in /var/www/vhosts/weXXXX.liXXX.XXXX.XX/httpdocs/typo3/sysext/core/Classes/Locking/FileLockStrategy.php line 97

if i add the Bootstrap Package and the aimeos_dist back again to the template then this error coming back when i try to load my page:
2.PNG
2.PNG (9.52 KiB) Viewed 3446 times
At the moment i restored my backup and back to 19.10.4.
Can you help me maybe please to update?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by aimeos » 23 May 2020, 06:49

At first sight, the errors are not directly related to Aimeos. Can you please delete the ./typo3temp/ directory before/after you upgrade? If the error occors again, can you please post the stack trace of the errors that are written to the ./typo3conf/var/logs/ directory?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by bouuman » 23 May 2020, 07:53

Hello, thank you for your reply!

i deleted the typo3temp before and after update, but it still the same:
update_aimeos.png
update_aimeos.png (94.01 KiB) Viewed 3429 times
log:
typo3_cde629c9ce.zip
typo3temp/var/log
(7.97 KiB) Downloaded 164 times
rolled back again to 19x.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by aimeos » 23 May 2020, 08:35

According to the log you've posted, the problem is:
TYPO3\\CMS\\Core\\Exception\\SiteNotFoundException: No site found in root line of page 1 in /var/www/vhosts/wXXXX.lXXs.sXXXX.XXe/httpdocs/typo3/sysext/core/Classes/Site/SiteFinder.php:138
The Aimeos 20.4 extension uses the TYPO3 site configuration by default. Please check that you've created at least one site configuration in the TYPO3 "Sites" panel in the left navigation bar.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by bouuman » 23 May 2020, 09:47

Hello again, thank you

ok the Site was there but the Base URL->Language configuration was missing, strange it worked with 19x... dont understand.
After i added the configuration, the page loaded! but didnt loaded like it should be:
(the articles are not shown, i can open the categorys but they are empty.) In typo3 backend the articles still there and are assigned to the categorys.)
page_after_update.png
page_after_update.png (17.41 KiB) Viewed 3422 times
before update:
usual_look_19x.png
usual_look_19x.png (41.21 KiB) Viewed 3422 times
customers menu is empty but they still visible in the database fe_users:
empty customer menu.png
empty customer menu.png (15.55 KiB) Viewed 3422 times
if i create a new customer now, the only difference is the "pid" number. Usually it was always 3... now its 0 for a new customer.

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by bouuman » 23 May 2020, 10:15

db users:
dbcust1.jpg
dbcust1.jpg (92.08 KiB) Viewed 3411 times
added new user after update:
added new customer.png
added new customer.png (25.47 KiB) Viewed 3411 times

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by aimeos » 23 May 2020, 10:28

bouuman wrote: 23 May 2020, 09:47 ok the Site was there but the Base URL->Language configuration was missing, strange it worked with 19x... dont understand.
TYPO3 is lax about that and works without a configured language. Aimeos 20.4 now enforces a language because it queries the languages available for the TYPO3 site and TYPO3 will throw an error if there are none.
bouuman wrote: 23 May 2020, 09:47 After i added the configuration, the page loaded! but didnt loaded like it should be:
(the articles are not shown, i can open the categorys but they are empty.) In typo3 backend the articles still there and are assigned to the categorys.)
Rebuild the Aimeos index using the scheduler.
bouuman wrote: 23 May 2020, 09:47 customers menu is empty but they still visible in the database fe_users:
empty customer menu.png

if i create a new customer now, the only difference is the "pid" number. Usually it was always 3... now its 0 for a new customer.
Not sure about why the customer menu is empty if you have entries in your fe_users table.
If you want to create customers in the Aimeos backend, you have to configure the page ID so they are able to log in (https://aimeos.org/docs/TYPO3/Install_A ... etup_login):

Code: Select all

plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = 3
module.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = 3
But the best place is to configure this in the PHP config file in your own extension because then it's available in the frontend, backend and the scheduler without having several configurations. Add it to <yourext>/Resources/Private/Config/mshop.php:

Code: Select all

return [
	'customer' => [
		'manager' => [
			'typo3' => [
				'pid-default' => 3
			]
		]
	]
];
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by bouuman » 23 May 2020, 12:46

ok big thank you so far... i still have only 2 problems (not rolling back at the moment)

1st problem:
missing customers, i can log in the customers because they still in the database but when you try to checkout then this comes up:
err_checkout.PNG
err_checkout.PNG (9.04 KiB) Viewed 3400 times

2nd problem:
the products appears again after i updated the index via sheduler like you told me thank you,
but Layout and formats of the homepage are gone, it looks strange formated now:
format_after_update.PNG
format_after_update.PNG (33.43 KiB) Viewed 3400 times

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by bouuman » 23 May 2020, 12:51

typo3temp var log:
typo3_cde629c9ce(1).zip
(9.25 KiB) Downloaded 138 times

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Error after Aimeos 19.10 -> 20.4.2 update

Post by aimeos » 23 May 2020, 12:58

bouuman wrote: 23 May 2020, 12:46 missing customers, i can log in the customers because they still in the database but when you try to checkout then this comes up:
Can you please check the siteid column in the fe_users table? It should now contain for your records something like "1." if there's a mshop_locale_site.id record with ID 1 or it can be empty string but NOT NULL.
bouuman wrote: 23 May 2020, 12:46 the products appears again after i updated the index via sheduler like you told me thank you,
but Layout and formats of the homepage are gone, it looks strange formated now:
The theme has been updated and it differs from the 2019.x version, so you have to adapt it if you have already changed it to your own layout.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply