Unable to create a new Site

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
HimanshuBhandari
Posts: 22
Joined: 16 Jul 2016, 13:11

Unable to create a new Site

Post by HimanshuBhandari » 21 Jan 2018, 08:42

I have a fresh aimeos installation ~2017.10 with laravel 5.5, I created Admin user and now trying to create a Site, but when I navigate to Site section I am unable to see Add button I stuck. Than I followed https://aimeos.org/docs/Laravel/Configu ... iple_shops tutorial to achieve it through console, but I got this error 'Maximum number of connections (2) for "db" exceeded'.

Finally I changes DB name in .env file and created a new DB and ran "php artisan aimeos:setup" without setting default shop, in that case also I got the same exception 'Maximum number of connections (2) for "db" exceeded'.

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

Re: Unable to create a new Site

Post by aimeos » 21 Jan 2018, 20:07

Can you specifiy your hosting environment please?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

HimanshuBhandari
Posts: 22
Joined: 16 Jul 2016, 13:11

Re: Unable to create a new Site

Post by HimanshuBhandari » 22 Jan 2018, 15:46

Hi, Sorry for not specifying required information.
I am using windows 10, and trying aimeos on my local environment.
Anyways, I found that I have make some changes in shop.php uncommenting resource section and uncommenting "jsonadm" from routes to solve CSRF issue {topic1304.html}. Finally I deleted "shop.php" and run composer update solved my problem.
Last edited by HimanshuBhandari on 22 Jan 2018, 16:01, edited 1 time in total.

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

Re: Unable to create a new Site

Post by aimeos » 22 Jan 2018, 15:57

Which web server do you use and which MySQL version?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

HimanshuBhandari
Posts: 22
Joined: 16 Jul 2016, 13:11

Re: Unable to create a new Site

Post by HimanshuBhandari » 22 Jan 2018, 17:44

aimeos wrote:Which web server do you use and which MySQL version?
MySQL version : 5.7.19 and the default php server by executing "php artisan serve"

I also updated shop.php to achieve https://aimeos.org/docs/Laravel/Configu ... iple_shops before deleting and updating it with

Code: Select all

'routes' => array(
	'account' => array('prefix' => '{site}', 'middleware' => ['web', 'auth']),
	'default' => array('prefix' => '{site}', 'middleware' => ['web']),
	'confirm' => array('prefix' => '{site}', 'middleware' => ['web']),
),
Don't know if it was causing the problem.

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

Re: Unable to create a new Site

Post by aimeos » 22 Jan 2018, 21:38

No, that shouldn't be the problem. Try the distribution for testing instead like recommended in the other thread.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

HimanshuBhandari
Posts: 22
Joined: 16 Jul 2016, 13:11

Re: Unable to create a new Site

Post by HimanshuBhandari » 23 Jan 2018, 18:38

After new installation as suggested in this post5511.html thread, I am able to enable currency and save for the first time, in second time either I got logged out automatically or got the same page expired error.
We can continue discuss this problem on another linked thread.

Post Reply