Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 04-02-2012 19:49:34

pogo
Members
Registered: 04-02-2012
Posts: 5

Can't add pictures for products

I have a new Maian Cart installation, 2.0.4. I can add a picture if I do it when I add a product. However, if I try to add pictures to an existing product, it doesn't work. I browse to select my image, select the folder, and click Add Pictures. The screen refreshes but nothing has happened. Photo is not there, and there is no error message. Any ideas?

Offline

#2 05-02-2012 09:07:29

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

Are you adding the image to a new folder you`ve created? Same folder as on add product?

Does your server error log have any error messages shown? Also, check in the images folder. Is the image there? Might be a database issue, in which case the image *might* have uploaded.

You can also enable error reporting, so at the top of the 'admin/control/error-reporting.php' file set:

error_reporting(0);

to

error_reporting(E_ALL);

Then try another image upload and see if an error appears onscreen.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 07-02-2012 05:13:45

Capo
Members
Registered: 26-08-2011
Posts: 56

Re: Can't add pictures for products

My Maiancart is doing the exact same thing.

Also ill keep my new request in this post. When you click on a category it shows all the items in that category along with the photo and the description, but not the part no.

What i mean is something like this requestl.jpg

Last edited by Capo (07-02-2012 05:29:02)

Offline

#4 07-02-2012 06:36:35

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

When you click on a category it shows all the items in that category along with the photo and the description, but not the part no.

I don`t understand, what part no? There isn`t an option to enter a part number is there? Are you altering the layout because the product code isn`t displayed on the category listing pages?


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#5 07-02-2012 11:41:35

Capo
Members
Registered: 26-08-2011
Posts: 56

Re: Can't add pictures for products

msworld wrote:

When you click on a category it shows all the items in that category along with the photo and the description, but not the part no.

I don`t understand, what part no? There isn`t an option to enter a part number is there? Are you altering the layout because the product code isn`t displayed on the category listing pages?

Sorry, by part no i mean "Code/Model No:" And no i didn't alter it, i just did a quick cut and paste in paint to show my example.

What i mean is, in the "Code/Model No:" box, i put a part number that identifies the product, which i call a part number. Now you can't see the "Code/Model No:" unless you click on the item and open it up. I wanted to know if you could make it so if there was a option to display it on the category pages as per my example(Which was just a cut and paste in paint)

So for sake if a customer comes and knows what part they are after and they open up a category they can see the part number.

Offline

#6 07-02-2012 16:49:39

pogo
Members
Registered: 04-02-2012
Posts: 5

Re: Can't add pictures for products

Thanks, David. I have tried uploading to the root and also to a new or existing folder. Nothing works (unless I'm doing it while adding a new product). I checked the server and the image is not there.

I turned on error reporting and got this:

Warning: file() [function.file]: Filename cannot be empty in /home/highgate/public_html/store/admin/classes/products.php on line 1230

Warning: Cannot modify header information - headers already sent by (output started at /home/highgate/public_html/store/admin/classes/products.php:1230) in /home/highgate/public_html/store/admin/control/modules/catalogue/product-pictures.php on line 56

Offline

#7 07-02-2012 17:01:05

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

Pogo, it sounds as though you are using the remote server upload option? That should be a CSV list of urls in a csv file. Did you try the actual image upload boxes?? Are your images on a remote server or local?

Capo, I`ve added your suggestion to my list. Not a problem to add a new variable.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#8 07-02-2012 17:28:26

pogo
Members
Registered: 04-02-2012
Posts: 5

Re: Can't add pictures for products

No, I am not using the CSV option. If I do, and I try to upload an image and not a CSV file (I did this as a test), I don't get the error message but nothing happens. I am using the default option. It says "Locate image" just above the Browse box.

My images are local. It all works perfectly if I do it while adding an image. Is the code different somehow?

Offline

#9 07-02-2012 19:56:29

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

Do you have the latest version of the cart? I do remember a bug related to the upload option for images, but should be ok now.

If you aren`t sure if you updated the files, re-download and replace:
admin/classes/products.php

See if that makes a difference.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#10 07-02-2012 20:59:12

pogo
Members
Registered: 04-02-2012
Posts: 5

Re: Can't add pictures for products

I downloaded the Maian Cart 2.04 just a few days ago, Feb. 2/2012. But to be sure, I downloaded it again and the products.php file is a slightly different size. I replaced it and still get the same error msg when trying to add pictures:


Warning: file() [function.file]: Filename cannot be empty in /home/highgate/public_html/store/admin/classes/products.php on line 1230

Warning: Cannot modify header information - headers already sent by (output started at /home/highgate/public_html/store/admin/classes/products.php:1230) in /home/highgate/public_html/store/admin/control/modules/catalogue/product-pictures.php on line 56

Offline

#11 07-02-2012 21:57:34

Capo
Members
Registered: 26-08-2011
Posts: 56

Re: Can't add pictures for products

Thanks David, that would be great.

Also what pogo is describing is happening to me without any error. Try and add a photo after i have already added the product though the upload an image.

Offline

#12 08-02-2012 08:04:57

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

Thanks Capo, problem fixed. Like I said to Pogo, I think my version control software reverted a file back to a previous version.

Just re-download and replace:
admin/classes/products.php

Sorry about that.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#13 08-02-2012 13:40:55

pogo
Members
Registered: 04-02-2012
Posts: 5

Re: Can't add pictures for products

Thanks for your help, David. Your assistance and the time to resolve this problem was amazing, especially for a free product. I don't get support like this for lots of products I've paid for!

Offline

#14 08-02-2012 20:12:32

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

pogo wrote:

Thanks for your help, David. Your assistance and the time to resolve this problem was amazing, especially for a free product. I don't get support like this for lots of products I've paid for!

You`re welcome. I know what you mean about bad support, I`ve had it myself. Problem is many companies outsource work to developers and they have to wait for them to look if there are problems. As you are dealing with me (ie, the developer) directly I like to think you get the personal touch. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#15 10-02-2012 04:26:42

Capo
Members
Registered: 26-08-2011
Posts: 56

Re: Can't add pictures for products

Tried updating that David but still not working.

Also, another suggestion is, there is somethings i want to sell that are

A: Bulky
B: Expensive to stock

So i was wondering if there could be a box that could be ticked that would say "This item is available but is not instock but will be order once your order is processed" or something along those lines.

Offline

#16 10-02-2012 08:35:50

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

Capo wrote:

Tried updating that David but still not working.

Also, another suggestion is, there is somethings i want to sell that are

A: Bulky
B: Expensive to stock

So i was wondering if there could be a box that could be ticked that would say "This item is available but is not instock but will be order once your order is processed" or something along those lines.

What isn`t working? Image uploads? I`m sure I replaced the zip files. Try it again.

Your best bet for the bulky is still to list it as normal but put a message in the description?


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#17 13-02-2012 03:32:56

Capo
Members
Registered: 26-08-2011
Posts: 56

Re: Can't add pictures for products

Tried again David updating the file but its still not adding the photo.

I'm more than happy to provide you a login if you wanna try and fix the problem.

Offline

#18 13-02-2012 08:07:06

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

Firstly, open 'admin/control/error-reporting.php'

Set error reporting level to E_ALL

Then try and add a photo and see if any errors appear on screen.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#19 14-02-2012 05:51:11

Capo
Members
Registered: 26-08-2011
Posts: 56

Re: Can't add pictures for products

Thats the error.

Warning: file() [function.file]: Filename cannot be empty in /home/southcoa/public_html/cart/admin/classes/products.php on line 1230

Warning: Cannot modify header information - headers already sent by (output started at /home/southcoa/public_html/cart/admin/classes/products.php:1230) in /home/southcoa/public_html/cart/admin/control/modules/catalogue/product-pictures.php on line 56

Offline

#20 14-02-2012 07:26:14

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

Yes, this should definitely be fixed in the latest zip files.

Are you sure you replaced 'admin/classes/products.php'?


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#21 15-02-2012 11:41:12

Capo
Members
Registered: 26-08-2011
Posts: 56

Re: Can't add pictures for products

Seems like i finally got it fixed. I tried it again at work this afternoon and now at home with no luck. Than i tried opening it, copy and than paste it in through the FTP and it has seemed to work. Seems weird.

Offline

#22 15-02-2012 19:23:35

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,071

Re: Can't add pictures for products

Capo wrote:

Seems like i finally got it fixed. I tried it again at work this afternoon and now at home with no luck. Than i tried opening it, copy and than paste it in through the FTP and it has seemed to work. Seems weird.

Ok, no problem. Glad you got it sorted anyway and sorry for the problems.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy