Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,513,082

Results 61 to 80 of 7,094
9 Jun 2006, 9:35 AM
#61
slapo avatar

slapo

New Zenner

Join Date:
Apr 2006
Posts:
4
Plugin Contributions:
0

Image Handler 2 (for ZC v1.3.8 ONLY) Support

hi guys,

I need some help here:
I've installed image handler, both in zencart on my box and the one that's going to be the production server.
However, when I upload an image, the resized versions are diplayed only in image handler section in admin, not elsewhere (and not in the catalog). The original images are shown instead.
Now, I think I've seen a post with a solution to this or a post linking to a solution, but I wasn't able to find it so far :(
safe_mode off, btw.

Thanks for any help on this :)

9 Jun 2006, 1:12 PM
#62
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

GazLuvsStace:

I am just about to install this module and I am conerned about overwriting existing PHP files. In the past, addons that simply overwrite existing files, usually break the code. I have noticed that the following files will be overwritten:

admin/includes/modules/category_product_listing.php
includes/functions/html_output.php
includes/modules/additional_images.php
includes/modules/main_product_image.php
includes/modules/pages/popup_image/header_php.php
includes/modules/pages/popup_image_additional/header_php.php
includes/template_default/popup_image_additional/tpl_main_page.php

Is it safe to overwrite these files? How can I be sure that a more recent update to Zen-Cart did not change any of these files (and would therefore be broken if I overwite them)? just wondering it would still work if i pur them in template folder (as in the locations they need to be tho)

FIRST BACKUP!
No overides in admin. So overwrite.

Same with includes/functions

Theory says you should be able to override /includes/modules by using /includes/modules/YOUR_TEMPLATE.

But that does not always work. So for IH2 Final I suggest overwriting files in /includes/modules (that's what I did).

And also overwrite the two files in 'pages' subdirs. Did I say backup first?

But use overrides for all templates.
includes/YOUR_TEMPLATE/popup_image_additional/tpl_main_page.php

IH2 Final was released AFTER Zen Cart 1.3.0.1. Tim always uses latest Zen Cart files in his updates. But you should always compare files with a compare utility to before overwriting. (e.g. Beyond Compare or WinMerge). To ensure you will not be overwrite your own customizations and ensure you have correct Zen Cart code revision.

Woody

9 Jun 2006, 3:17 PM
#63
sgflowers avatar

sgflowers

Totally Zenned

Join Date:
Jan 2004
Posts:
508
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Hi Tim & others,

i just noticed that one of the fuctions i used on the previous version of image handler seems to be missing on 2.0

when added a new product / editing on i no longer have the ability to indicate that the image i am uploading is an additional product - is this functionality removed?

Thanks,

Kevin

i can't seem to figure out how to upload an additional image at all
did i miss a file upload?

9 Jun 2006, 3:35 PM
#64
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

kelvyn:

html_output not only gets over-written, but it is a core file which several other (I can think of at least 3) plugins modify.

I've seen certain contribs lately that have renamed copies of the file in the folder, so the cart owner can make the choice to rename and wipe the original, or merge it in.

(Another reason for full over-rides!)
Off the top-of-your-head which three mods modify html_output.php?

Yes full overrides is the eventual goal. Until that time...

BACKUP and always run the files through a compare utility. And when testing mods of course this should not be done on a production shop. Hello. If having troubles with mods working correctly then a good testing method is to NOT include ANY code from other customizations/mods. I recommend creating a clean image of a pre-configured Zen Cart installation (fresh db too) which can be uploaded and quickly updated to test a specific mod. This is best scenario when having issues. Then you can install other needed mods to test if for negative interactions/reactions.

Yes renaming a file rather than overriding can sometimes be a safeguard but does not work all the time. You do not want to leave non-working files in some directories as that will cause havoc.

Most folks who ask questions on the mod forums should understand if they have previously installed/uploaded mods or customized their code. And they would know this if following the golden rule of documenting all modifications. Then overwriting (again after backing up) should be a low risk issue.

But again as a rule I run a compare before over writing.

I maintain a spreadsheet documenting files uploaded by each contribution or patch I install and document each time I customize a,file including core files. Then I check against this document whenever installing or updating mods or when modifying code, including official Zen Cart patches.

Would be cool if a "community DB" could be maintained documenting the core files modified by third party mods. Of course checking in changes, keeping it up-to-date and correct could be a daunting mangement task.

Woody

9 Jun 2006, 4:12 PM
#65
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

kelvyn:

Of the ones I've just installed, and off the top of my head:
IH2, any of the SEO / SEFU contribs and "ask a product question".

So in fact, 25% of all the mods I've installed mess with html_output.
I don't see that file gets modified very often in 1.3x. Ask a question (Marge) does not modify html_output. You may be referring to another similarly named mod?

On one shop I have 25 mods installed and many other customizations. Of these mods IH2 is the only one to modify /includes/functions/html_output.php

Woody

9 Jun 2006, 5:33 PM
#66
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

kelvyn:

Ask A Question for Zen-Cart v1.3.0
Yes, you're right, I must be looking at the OTHER ask a question contrib by the other marge ;)

Been running the Ask A Question for 1.30 from same author. The readme says version 1.0 and is dated 04-06-06. Does not mention anything of editing html_output.php. Strange. And I did not see announcment of updated version. This I just re-downloaded ask_a_question_v1.3.0.zip and the mod readme still shows version 1.0. However the template file and the readme in the latest package are indeed diff from my version and readme now suggests editing html_output as you quoted. But no new features are indications the mod was updated is in readme. The previous v1.0 mod I downloaded works fine for me. Thanks for the update. Wonder what is different in the new version and why Marg did not announce anywhere?

I'd be interested to know what you use for your URL rewrites! No URL rewriting implemented. I have quality search rankings/PR's and don't want to mess them up, even if for the short term.[/QUOTE]

@Tim - Apologies for hijacking the IH2 thread. Moving the Ask A Question discussion to http://www.zen-cart.com/forum/showthread.php?p=206085

Woody

9 Jun 2006, 7:03 PM
#67
maxus avatar

maxus

Zen Follower

Join Date:
Feb 2005
Location:
Prague
Posts:
130
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Damn,
Im turn on SSL for admin zone and cant select Image Handler in tool smenu - Im alway redirected to admin login page...

so zen-cart +chemo SEFU+ IH2 + SSL dosnt worked..

9 Jun 2006, 9:25 PM
#68
timkroeger avatar

timkroeger

Totally Zenned

Join Date:
Feb 2005
Location:
Germany
Posts:
580
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Just a short notice, as I'm very busy: MM has posted a few quick fixes for IH2 which will be in the next bugfix release (which is still a bit out) at the breakmyzencart forums. You might want to check it out as it fixes the IE javascript error and the wrong referenced images in admin/preview. The tip with the png-compression should be

$quality = (int)$quality/10;
``` though (intead of 100), I think. (No guarantee, not tested).

Cheers,
Tim
9 Jun 2006, 9:57 PM
#69
woodlandsprite avatar

woodlandsprite

Zen Follower

Join Date:
May 2006
Posts:
307
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Tim :) You're fantastic.
Thanks!

Live again! http://spritelygoods.com Rebuilt on ZC v 1.5.1 from 1.3.0.2

11 Jun 2006, 3:57 AM
#70
prellis avatar

prellis

New Zenner

Join Date:
Jul 2005
Posts:
46
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Tim replied:
"@prellis: If you are running 1.2.7 with a custom template, you need to update the additional_images php files according to the ones in template_default. "

Promblem:
I'm running 1.2.7...I have the additional pics loaded into H2...they are showing up in admin but they are not on the catalog end...

I took the tpl_main_page.php, which is located in /includes/templates/template_default/popup_image_additional... and FTP'd it over to my custom folder (includes/templates/custom/popup_image_additional)..This didn't work... I couldn't find any other additional_images php files in the template_default folder... Am I missing a file? Or could there be another solution...

Thank you for all your help...
prellis

11 Jun 2006, 8:01 PM
#71
noella avatar

noella

New Zenner

Join Date:
Oct 2005
Posts:
71
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Strangest problem!

Running: 1.27
IH2 was working perfectly.

Problem: I get an error on some products or categories when I click on them to add additional pictures. But some are fine and I can add pictures. Very strange.

error message:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 
11 Jun 2006, 8:15 PM
#72
timkroeger avatar

timkroeger

Totally Zenned

Join Date:
Feb 2005
Location:
Germany
Posts:
580
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Images too big for the server to handle?You shouldn't go higher than 2 Megapixels if you are on a shared server.

Kind regards,
Tim

11 Jun 2006, 8:20 PM
#73
noella avatar

noella

New Zenner

Join Date:
Oct 2005
Posts:
71
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

My images are not very big. They are around 50KB each picture.

I investigated into the Error log and all it says is this:

File does not exist: /home/kookoot/public_html/500.shtml
Premature end of script headers: /home/kookoot/public_html/store/admin/image_handler.php

I get error on some products and I get the error when i tried to display one of my categories! I'm just wondering whether the problem could be something to do with my server or the MySQL database?

12 Jun 2006, 3:37 PM
#74
sgflowers avatar

sgflowers

Totally Zenned

Join Date:
Jan 2004
Posts:
508
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

sgflowers:

Hi Tim & others,

i just noticed that one of the fuctions i used on the previous version of image handler seems to be missing on 2.0

when added a new product / editing on i no longer have the ability to indicate that the image i am uploading is an additional product - is this functionality removed?

Thanks,

Kevin

i can't seem to figure out how to upload an additional image at all
did i miss a file upload?

so clarify the radio button for upload as an additional image is missing on the product edit screen

any ideas?

12 Jun 2006, 7:25 PM
#75
nigelhig avatar

nigelhig

New Zenner

Join Date:
Sep 2005
Posts:
44
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I have image handler 2 working fine with the exeption that the larger image pop ups don't work. Nothing happens when you click on the image on the groduct page. Well normally it doesn't .....sometimes the first couple of larger images appear but then nothing.
It is very frustrating as I want to go live with my site and this is holding me back.

Any ideas please...

https://www.samandsebastian.co.uk

13 Jun 2006, 4:23 AM
#76
dvdguy avatar

dvdguy

New Zenner

Join Date:
Jun 2006
Posts:
19
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Just downloaded the latest version for zen 1.3...

\includes\modules\additional_images.php
\includes\modules\main_product_image.php

seem to be missing closing ?>

actually most of the php files are missing the closing tag...?

13 Jun 2006, 4:58 AM
#77
dvdguy avatar

dvdguy

New Zenner

Join Date:
Jun 2006
Posts:
19
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

OK, so I did some searches and see this has been discussed before. PHP sucks if it is so sensitive to whitespace after the tag. Yes I've spent hours wondering why a mod didn't work and then noticed some bogus whitespace. Actually I totally gave up on oscommerce partly because an image handler mod wasn't working for that exact reason... lol. Also the mods were full of old potentially unsecure code.

So, then why does html_output have a closing tag and an extra blank line?
http://www.zen-cart.com/forum/images/smilies/wacko.gif
:wacko:

13 Jun 2006, 6:22 PM
#78
se7enet avatar

se7enet

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Ok, I've got a really screwy problem and I can't figure out what is causing it, but as best I can tell it has something to do with Image Handler 2, probably related to specific server settings.

We're setting up a ZC install for a client. The whole install works great on my localhost dev server (Windows), and it works great on the live demo site (Linux) which we've been letting him use and play with. We finally got the go-ahead to upload to his real server (also Linux) so I did that this morning - straight copy of the files and database from our demo site (with fixed configure.php file, obviously, for the new locations and what-not). Got all the CHMOD folders and files set up correctly, at least according to the ZC and Image Handler install docs.

Everything on ZC works fine, EXCEPT the catalog pages or any other page where product images have to be displayed. These are now completely blank. In the admin site, everything works EXCEPT Image Handler's manager section. In the Manager section of this, it displays down to "Please donate. Why? One time gift of <textbox>" and then stops. The rest of the page is blank, and View Source confirms that the "don-amount" textbox is the last thing on the page.

Manually adding "error_reporting(E_ALL)" to /admin/includes/ih_manager.php does bring up a bunch of notices about undefined variables and properties, but none of them seem to be show-stoppers and they all also show up on my localhost server (which does work).

The real server does have gd. The rest of the specs are Apache 2.0.50, PHP 4.3.10, and MySQL 3.23.58. It does have Zend Debugger and Zend Optimizer running, which is the only major difference I can tell between the client's live server and our live demo server. Does IH2 have an issue with Zend Optimizer, perhaps? I can't imagine why, but it's the only thing I can think of at this point.

Any help would be much appreciated. Thanks so much!!!

---Jamin

13 Jun 2006, 6:46 PM
#79
sgflowers avatar

sgflowers

Totally Zenned

Join Date:
Jan 2004
Posts:
508
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

sgflowers:

so clarify the radio button for upload as an additional image is missing on the product edit screen

any ideas?

is this a zencart 1.3 thing i can't figureout why this option isn't showing anymore

13 Jun 2006, 8:34 PM
#80
se7enet avatar

se7enet

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Nevermind my above post. I deleted the entire ZC directory on the final site and re-uploaded everything, and now it's working. I'd tried that once before to no avail, but it seemed to work the second time. Silly me.

Anyhoo, yeah, disregard my above post. Sorry.

---Jamin