Admin interface stuck?

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
swpierce
Posts: 53
Joined: 01 Nov 2015, 13:19

Re: Admin interface stuck?

Post by swpierce » 03 Nov 2015, 02:29

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...
Attachments
Screen Shot 2015-11-02 at 7.24.36 PM.png
Screen Shot 2015-11-02 at 7.24.36 PM.png (188.1 KiB) Viewed 1501 times

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

Re: Admin interface stuck?

Post by aimeos » 03 Nov 2015, 09:02

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?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

swpierce
Posts: 53
Joined: 01 Nov 2015, 13:19

Re: Admin interface stuck?

Post by swpierce » 03 Nov 2015, 13:48

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!
Attachments
Screen Shot 2015-11-03 at 6.45.24 AM.png
Screen Shot 2015-11-03 at 6.45.24 AM.png (139.45 KiB) Viewed 1498 times

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

Re: Admin interface stuck?

Post by aimeos » 03 Nov 2015, 14:12

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).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

swpierce
Posts: 53
Joined: 01 Nov 2015, 13:19

Re: Admin interface stuck?

Post by swpierce » 04 Nov 2015, 21:07

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.

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

Re: Admin interface stuck?

Post by aimeos » 04 Nov 2015, 21:25

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

swpierce
Posts: 53
Joined: 01 Nov 2015, 13:19

Re: Admin interface stuck?

Post by swpierce » 04 Nov 2015, 23:24

Sure. I'll give it a shot!

swpierce
Posts: 53
Joined: 01 Nov 2015, 13:19

Re: Admin interface stuck?

Post by swpierce » 06 Nov 2015, 22:20

Reinstall without using Bestmomo Scafold seems to have done the trick. Thanks for all the help!

Post Reply