Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Image uploader issue v7.7.1
Author « Topic »  

homerads
Starting Member

United Kingdom
10 Posts

Posted - 11/03/2023 :  01:47:55  
I recently ran the upgrader and transferred code for v7.7.1

We have some light mods and so some code was updated "by hand". Now I seem to have hit a problem that I cannot work out the solution for...

If we try to use the image uploader for adding new or additional images, we get the following (PHP v8):

Error uploading image: 200
SUCCESS:gtim3=prodimages/IMG_20220207_134700.jpg&smim3=prodimages/IMG_20220207_134700_small.jpg&lgim3=prodimages/IMG_20220207_134700_medium.jpg&

The images are in the correct folders but nothing is updated in terms of the database. Note the trailing "&".

I tried running on PHP v7.2 and got a different error.

Any ideas or help would be appreciated.

Vince
Administrator

42641 Posts

Posted - 11/03/2023 :  04:20:10  
Hi Homerads
Is it possible to try with a vanilla version of the cart code before we start pulling things apart? Just in case, etc.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

homerads
Starting Member

United Kingdom
10 Posts

Posted - 11/03/2023 :  07:30:29  
Hi Vince,

I've just overwritten the entire VSADMIN folder including sub-folders and files likewise, JS folder and files with those contained in v7.7.1 and the problem is the same. Also tried v7.7.2 and same result.


BTW, I've also re-run updatestore.php now for the 7.7.2 version.

Thanks,

David


Vince
Administrator

42641 Posts

Posted - 11/04/2023 :  04:09:14  
Hi David
Sorry for the wild goose chase but I think I see what is happening now and I've added the fix to the vsadmin/doupload.php file in the updater.
What seems to be the problem is that if there are any spaces or additional characters in your includes.php file or the database connection file then the "SUCCESS" doesn't match and the code thinks an error occurred. I've added a line to flush the output buffer and that should sort it out.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

homerads
Starting Member

United Kingdom
10 Posts

Posted - 11/06/2023 :  02:48:22  
Thank you so much Vince!

I'll download the latest updater and report back.

Just back from a sunny week's holiday up the road from you!

David

Vince
Administrator

42641 Posts

Posted - 11/07/2023 :  02:02:12  
Hi David
quote:
Just back from a sunny week's holiday up the road from you!
I hope you didn't catch that storm then as I don't think I've seen winds like that here before. Hope you had a good time though!

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

homerads
Starting Member

United Kingdom
10 Posts

Posted - 11/07/2023 :  02:09:24  
Hi Vince,

To confirm, the ob_clean(); code addition has fixed the issue - thank you for your prompt assistance.

We were in the Costa Blanca for a week from the 20th Oct and the weather was really nice, esp. compared to the UK!

Best regards,

David

(HomeRads.com and HomeSupply.co.uk)

  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000