Page 2 of 2

Re: Admin interface stuck?

Posted: 03 Nov 2015, 02:29
by swpierce
As I mentioned, fixing that error created a new error. I still only get the Loading... square. Not I get an error related to the actual HTML in the response.

Code: Select all

Uncaught SyntaxError: Unexpected token <                  admin:1
See attached screenshot...

Re: Admin interface stuck?

Posted: 03 Nov 2015, 09:02
by aimeos
swpierce wrote:

Code: Select all

Uncaught SyntaxError: Unexpected token <                  admin:1
Something seems to be really messed up. Can you make a screenshot of the loaded URLs in the "Network" tab from the Chrome developer tools, please?

Re: Admin interface stuck?

Posted: 03 Nov 2015, 13:48
by swpierce
I attached a screenshot of the XHR requests. I can grab the other requests also if needed - 80 total.

Thanks again for helping me out!

Re: Admin interface stuck?

Posted: 03 Nov 2015, 14:12
by aimeos
swpierce wrote:I attached a screenshot of the XHR requests. I can grab the other requests also if needed - 80 total
There are a lot of XHR request that are not related to Aimeos. Did you've integrated it into another application? If yes, could you please make a setup of Laravel/Aimeos only first?

The only Aimeos XHR request is "index.php/admin/do". If it returns the index page, then the wrong URL is fetched internally (either due to the web server or the Laravel application).

Re: Admin interface stuck?

Posted: 04 Nov 2015, 21:07
by swpierce
No. The only thing in that directory is Aimeos.

I installed Composer.
I installed Laravel.
I ran "laravel new storefront"
I created an empty database and modified .env accordingly.
I modified the composer.json with the Aimeos stuff required.
I ran composer update.
I modified app.php to include the provider.
I ran php artisan vendor:publish
I ran php artisan migrate
I ran php artisan aimeos:setup --option=setup/default/demo:1
I ran php artisan aimeos:cache
I modified composer.json to install Bestmomo\Scafold so as to have the app.blade.php etc.
I ran composer update
I modified app.php to include the Bestmomo Scafold provider.
I ran php artisan vendor:publish
I modified the app.blade.php to include the required Aimeos stuff.
I modified my http virtual host configuration to make the public folder in the laravel project the root.
I opened storefront.dev/index.php/list - ran into csrf-related error.
I modified Kernel.php to move csrf-related stuff to routeMiddleware.
I tried storefront.dev/index.php/list again - no problem - store works great.
I opened storefront.dev/index.php/admin - doesn't work.

I made no other changes and installed no other packages.

Re: Admin interface stuck?

Posted: 04 Nov 2015, 21:25
by aimeos
swpierce wrote: I modified composer.json to install Bestmomo\Scafold so as to have the app.blade.php etc.
I ran composer update
I modified app.php to include the Bestmomo Scafold provider.
Can you redo the whole stuff but leave out the Bestmomo stuff? You can create the app.blade.php according to the docs:
https://aimeos.org/docs/Laravel/Adapt_base_template

Re: Admin interface stuck?

Posted: 04 Nov 2015, 23:24
by swpierce
Sure. I'll give it a shot!

Re: Admin interface stuck?

Posted: 06 Nov 2015, 22:20
by swpierce
Reinstall without using Bestmomo Scafold seems to have done the trick. Thanks for all the help!