Page 1 of 1

Product Images upload fails

Posted: 09 Mar 2016, 06:13
by pingtechgroup
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 all

aimeos/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 all

SplFileInfo::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.

Re: Product Images upload fails

Posted: 09 Mar 2016, 14:18
by aimeos
pingtechgroup wrote:I tried to load an image to the previously created product, but I got an error.

Code: Select all

SplFileInfo::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/t ... dmin/JQAdm

Re: Product Images upload fails

Posted: 14 Mar 2016, 04:12
by pingtechgroup
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 all

InvalidArgumentException 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.

Re: Product Images upload fails

Posted: 14 Mar 2016, 07:42
by aimeos
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