Page 1 of 1

Unable to create a new Site

Posted: 21 Jan 2018, 08:42
by HimanshuBhandari
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'.

Re: Unable to create a new Site

Posted: 21 Jan 2018, 20:07
by aimeos
Can you specifiy your hosting environment please?

Re: Unable to create a new Site

Posted: 22 Jan 2018, 15:46
by HimanshuBhandari
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.

Re: Unable to create a new Site

Posted: 22 Jan 2018, 15:57
by aimeos
Which web server do you use and which MySQL version?

Re: Unable to create a new Site

Posted: 22 Jan 2018, 17:44
by HimanshuBhandari
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.

Re: Unable to create a new Site

Posted: 22 Jan 2018, 21:38
by aimeos
No, that shouldn't be the problem. Try the distribution for testing instead like recommended in the other thread.

Re: Unable to create a new Site

Posted: 23 Jan 2018, 18:38
by HimanshuBhandari
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.