Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#2615 by pingtechgroup
09 Mar 2016, 06:13
I first loaded the aimeos package and used the demo data. Tested it and all seemed to work well. All the images were properly associated with the various demo products.
Below are the versions that I am using.
Code: Select allaimeos/ai-laravel                     2016.01.1
aimeos/ai-swiftmailer                 2016.01.2
aimeos/ai-zend2-i18n                  2016.01.2
aimeos/aimeos-core                    2016.01.7
aimeos/aimeos-laravel                 2016.01.3
laravel/framework                     v5.2.16
OS: Ubuntu 14.04


I then wiped the database and re-ran the artisan aimeos:setup without the import demo data option. I created a product and that seemed to work fine. I did not upload an initial image. Afterwards, realizing that I had omitted it, I tried to load an image to the previously created product, but I got an error.
Code: Select allSplFileInfo::getSize(): stat failed for /tmp/phptEs6ZE


I then tried to create a new product, and upload the image as the product was saved, but I got the same error. (different tmpfile name).

I could not find the file that was uploaded to the server, nor the proper controller that defined the /tmp file association. Granted I am fairly new to laravel, but the logic flow seems very non-intuitive.

Any help will be greatly appreciated.
#2616 by aimeos
09 Mar 2016, 14:18
pingtechgroup wrote:I tried to load an image to the previously created product, but I got an error.
Code: Select allSplFileInfo::getSize(): stat failed for /tmp/phptEs6ZE


We've released a new beta release (2016.03) which should fix that issue.

pingtechgroup wrote:I could not find the file that was uploaded to the server, nor the proper controller that defined the /tmp file association. Granted I am fairly new to laravel, but the logic flow seems very non-intuitive.


Everything related to the Aimeos JQAdm interface is located in
https://github.com/aimeos/aimeos-core/tree/master/admin/jqadm/src/Admin/JQAdm
#2628 by pingtechgroup
14 Mar 2016, 04:12
Thank you!
That resolved that specific issue.
But after the update there is a new error when trying to navigate to /list or index.php/list:

Code: Select allInvalidArgumentException in UrlGenerator.php line 307:
Route [] not defined.
in UrlGenerator.php line 307
at UrlGenerator->route(null, array(), false) in Laravel5.php line 59
at Laravel5->transform(null, 'catalog', 'list', array(), array(), array())
at call_user_func_array(array(object(Laravel5), 'transform'), array(null, 'catalog', 'list', array(), array(), array())) in Standard.php line 85
at Standard->__call('url', array(null, 'catalog', 'list', array(), array(), array())) in body-default.php line 100
at Standard->url(null, 'catalog', 'list', array(), array(), array()) in body-default.php line 100
at include('/home/vagrant/demo/econ1.app/vendor/aimeos/aimeos-core/client/html/templates/catalog/filter/body-default.php') in Standard.php line 274
at Standard->includeFile('/home/vagrant/demo/econ1.app/vendor/aimeos/aimeos-core/client/html/templates/catalog/filter/body-default.php') in Standard.php line 219
at Standard->render('catalog/filter/body-default.php') in Standard.php line 183
at Standard->getBody() in Page.php line 85


Since there is only demo data on this instance, I am starting a new/fresh install w/o the demo data. I will update this thread with the results.

UPDATE:
So a fresh install seems to have resolved all issues.
Last edited by pingtechgroup on 14 Mar 2016, 09:33, edited 1 time in total.
#2629 by aimeos
14 Mar 2016, 07:42
Unfortunately, the Laravel decided to copy all configuration and views of packages to a local directory and they won't be updated with newer version. Thus, you have to do this on your own if you upgrade a package. There are some hints in the upgrade page:
https://aimeos.org/docs/Laravel/Upgrade