500 Error

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!
Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

500 Error

Post by Shopmister » 15 Jan 2021, 11:18

Hey, i have at different things the same error. In the Distribution and the manual
Manual: 20.10.5
Distribution: 20.10.1
Typo3 10.4.12; an symlinkinstallation
PHP Version 7.3.19-1~deb10u1
Database (Default) MySQL 5.5.5-10.3.27-MariaDB-0+deb10u1
Operating System Linux 4.19.0-9-amd64

- The Error cames, if i do the action from aimeos in Extensionmodul, to update the database
- In the Aimeos backend-modul
and sometimes during the installation of the extension

Its a aimeosproblem, all other things works normal, and the frontend with aimeos normal too.

Informations:
in cache di/DependencyInjectionContainer_e5867b4274c5a525322403decadd121fb0382c91

these two things(another ext had some problems with caching path, only a try):
return $this->services['backend.routes_decorated_34'] = $a->extendService('ground', 'backend.routes', $this, $a->extendService('aimeos', 'backend.routes', $this, $a->extendService('static_info_tables', 'backend.routes', $this, $a->extendService('pdfviewhelpers', 'backend.routes', $this, $a->extendService('viewpage', 'backend.routes', $this, $a->extendService('tstemplate', 'backend.routes', $this, $a->extendService('t3editor', 'backend.routes', $this, $a->extendService('sys_note', 'backend.routes', $this, $a->extendService('seo', 'backend.routes', $this, \TYPO3\CMS\Lowlevel\ServiceProvider::configureBackendRoutes($this, $a->extendService('info', 'backend.routes', $this, $a->extendService('felogin', 'backend.routes', $this, $a->extendService('extensionmanager', 'backend.routes', $this, \TYPO3\CMS\Dashboard\ServiceProvider::configureBackendRoutes($this, $a->extendService('beuser', 'backend.routes', $this, $a->extendService('belog', 'backend.routes', $this, $a->extendService('adminpanel', 'backend.routes', $this, $a->extendService('about', 'backend.routes', $this, $a->extendService('rte_ckeditor', 'backend.routes', $this, $a->extendService('setup', 'backend.routes', $this, \TYPO3\CMS\Backend\ServiceProvider::configureBackendRoutes($this, $a->extendService('recordlist', 'backend.routes', $this, $a->extendService('redirects', 'backend.routes', $this, $a->extendService('reports', 'backend.routes', $this, \TYPO3\CMS\Install\ServiceProvider::configureBackendRoutes($this, $a->extendService('form', 'backend.routes', $this, $a->extendService('impexp', 'backend.routes', $this, $a->extendService('filelist', 'backend.routes', $this, $a->extendService('fluid_styled_content', 'backend.routes', $this, \TYPO3\CMS\Frontend\ServiceProvider::configureBackendRoutes($this, $a->extendService('fluid', 'backend.routes', $this, \TYPO3\CMS\Extbase\ServiceProvider::configureBackendRoutes($this, $a->extendService('scheduler', 'backend.routes', $this, \TYPO3\CMS\Core\ServiceProvider::configureBackendRoutes($this, \TYPO3\CMS\Backend\ServiceProvider::getBackendRoutes($this)))))))))))))))))))))))))))))))))));

return $this->services['middlewares_decorated_33'] = $a->extendService('ground', 'middlewares', $this, $a->extendService('aimeos', 'middlewares', $this, $a->extendService('static_info_tables', 'middlewares', $this, $a->extendService('pdfviewhelpers', 'middlewares', $this, $a->extendService('viewpage', 'middlewares', $this, $a->extendService('tstemplate', 'middlewares', $this, $a->extendService('t3editor', 'middlewares', $this, $a->extendService('sys_note', 'middlewares', $this, $a->extendService('seo', 'middlewares', $this, \TYPO3\CMS\Lowlevel\ServiceProvider::configureMiddlewares($this, $a->extendService('info', 'middlewares', $this, $a->extendService('felogin', 'middlewares', $this, $a->extendService('extensionmanager', 'middlewares', $this, \TYPO3\CMS\Dashboard\ServiceProvider::configureMiddlewares($this, $a->extendService('beuser', 'middlewares', $this, $a->extendService('belog', 'middlewares', $this, $a->extendService('adminpanel', 'middlewares', $this, $a->extendService('about', 'middlewares', $this, $a->extendService('rte_ckeditor', 'middlewares', $this, $a->extendService('setup', 'middlewares', $this, \TYPO3\CMS\Backend\ServiceProvider::configureMiddlewares($this, $a->extendService('recordlist', 'middlewares', $this, $a->extendService('redirects', 'middlewares', $this, $a->extendService('reports', 'middlewares', $this, $a->extendService('form', 'middlewares', $this, $a->extendService('impexp', 'middlewares', $this, $a->extendService('filelist', 'middlewares', $this, $a->extendService('fluid_styled_content', 'middlewares', $this, \TYPO3\CMS\Frontend\ServiceProvider::configureMiddlewares($this, $a->extendService('fluid', 'middlewares', $this, \TYPO3\CMS\Extbase\ServiceProvider::configureMiddlewares($this, $a->extendService('scheduler', 'middlewares', $this, \TYPO3\CMS\Core\ServiceProvider::configureMiddlewares($this, \TYPO3\CMS\Core\ServiceProvider::getMiddlewares($this))))))))))))))))))))))))))))))))));

ANd the 500 Error:
https://aimeos2021.domain.de/typo3/inde ... dmin&token jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:7784 =74b3acff0dea71bec45f7eaa2a405a183a28a176 500
attr @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:7784
access @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3976
attr @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:7741
(anonymous) @ ContentContainer.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:13
mightThrow @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3557
process @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3625
setTimeout (async)
(anonymous) @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3663
fire @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3291
add @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3350
(anonymous) @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3683
Deferred @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3774
then @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3668
setUrl @ ContentContainer.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:13
openInContentFrame @ ModuleMenu.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:13
(anonymous) @ ModuleMenu.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:13
proxy @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:10502
mightThrow @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3557
process @ jquery.js?bust=65af5649baecf6ad42455ab66643a8e571852ff9:3625
https://aimeos2021.domainname.de/typo3/index.php...

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

Re: 500 Error

Post by aimeos » 15 Jan 2021, 12:34

Do you have a full PHP stack trace of the error?
Make sure the symlinks for the Aimeos extensions are added correctly if you have a composer based setup:
https://github.com/aimeos/aimeos-typo3#composer
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

Re: 500 Error

Post by Shopmister » 15 Jan 2021, 13:06

Without composer, only a symlinkistallation

Where i can find the PHP stack trace? I have no idea what that is. i have server access. You mean the logfiles?

By the distributioininstall i have now this error:
PHP Warning: file_exists(): open_basedir restriction in effect. File(/usr/share/php/ScssPhp/ScssPhp/Version.php) is not within the allowed path(s): (/home/users/username/www:/home/users/username/files:/home/users/username/tmp) in /home/users/username/www/Typo3_10/MarketDist_2021/typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/Bootstrap.php line 80

E_DEPRECATED => 'PHP Runtime Deprecation Notice'
];
$message = $errorLevels[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine;
if ($errorLevel & $this->exceptionalErrors) {
throw new Exception($message, 1476107295);
}
switch ($errorLevel) {
case E_USER_ERROR:
case E_RECOVERABLE_ERROR:

But for me is the other install more importand

I activated now debug in boths installations, after pushing the database updatescript and in the Aimeos-Modul-area, that errormessage:

Get help in the TYPO3 Wiki

If you need help solving this exception, you can have a look at the TYPO3 Wiki. There you can find solutions provided by the TYPO3 community. Once you have found a solution to the problem, help others by contributing to the wiki page.
Last edited by Shopmister on 18 Jan 2021, 11:37, edited 1 time in total.

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

Re: 500 Error

Post by aimeos » 17 Jan 2021, 11:10

open_basedir is enabled in you PHP installation and you need to disable it.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

Re: 500 Error

Post by Shopmister » 18 Jan 2021, 06:58

Okay, after many forumposts with php knowing people. Its working now!

Thanks, great!

It is possible that functions like Downloadproducts dont work/maybe worked because open dir?
Maybe the other aimeosproblems like the set users to Page 0, only these some things have to do maybe with open_basedir?
Only for information that i can hope this time all will works :)

Ps. But the aimeos Extension, says after Aimeos works again, : PHP setting "open_basedir" is enabled
do Aimeos check only if it somewhere enabled or ist Aimeos checking where exactly? If the first i can ignore that can i?

I did set that for the open_basedir to disable in a form to disable opd on my server:
##DOCROOT##/www:##DOCROOT##/files:##DOCROOT##/tmp:/tmp:/usr/share/php
I set somebody told me only: that the Aimeos can go out of userstorages to usr/share/php

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

Re: 500 Error

Post by aimeos » 19 Jan 2021, 08:51

These are two different problems. You have to disable open_basedir completely so you won't get into trouble.
The PID 0 for new customers is a missing configuration setting:

Code: Select all

plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = ...
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Shopmister
Posts: 92
Joined: 15 Jan 2021, 11:02

Re: 500 Error

Post by Shopmister » 20 Jan 2021, 09:24

Wich paths need Aimeos outsite of user exactly? I could write all paths in the configuration.
Because i disabled in these files in the phpversion 7.3 open_basedir
- php.ini-production.cli
-php.ini-production
- developement

And aimeos says that open_basedir not disabled
And i restartet the server, to be sure. Same

plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = ...
Where i have to write the configuration. In the setup/config? Like the configurations from the distribution?
I have to set the numer of the pid of the folder then, like 1,9 ....?
like: plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = 3

I had for few days the problem that i set a setting about the congifield in the templatemodul, and deleted the setting. And the functinality wasnt away. i hope normal settings are easy to handle :).
Exist a list of importand setting, i have to set? Thats most save that things like users cant login because all users are on page "0", not happening if its ,livewebsite.

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

Re: 500 Error

Post by aimeos » 21 Jan 2021, 09:35

Shopmister wrote: 20 Jan 2021, 09:24 And aimeos says that open_basedir not disabled
And i restartet the server, to be sure. Same
If Aimeos is still complaining, it's still active in your PHP setup.
Shopmister wrote: 20 Jan 2021, 09:24
plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = ...
Where i have to write the configuration. In the setup/config? Like the configurations from the distribution?
I have to set the numer of the pid of the folder then, like 1,9 ....?
like: plugin.tx_aimeos.settings.mshop.customer.manager.typo3.pid-default = 3
Yes, add that to the setup TypoScript template of your root page.
Shopmister wrote: 20 Jan 2021, 09:24 I had for few days the problem that i set a setting about the congifield in the templatemodul, and deleted the setting. And the functinality wasnt away. i hope normal settings are easy to handle :).
Exist a list of importand setting, i have to set? Thats most save that things like users cant login because all users are on page "0", not happening if its ,livewebsite.
The "constants" TypoScript contains the most important, predefined settings.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply