Re: Image Handler 2 Support
The preview in Image Handler doesn't give the right path.
The previews have the path:
png --> /webshop/webshop/admin/images/ih-test.png
jpg --> /webshop/webshop/admin/images/ih-test.jpg
gif --> /webshop/webshop/admin/images/ih-test.gif
It has to be for example /bmz_cache/3/33f0b2cdfebcc994659514b33f516d25.image.141x80.png
Why?
Re: Image Handler 2 Support
Quote:
Originally Posted by raimond
The preview in Image Handler doesn't give the right path.
The previews have the path:
png --> /webshop/webshop/admin/images/ih-test.png
jpg --> /webshop/webshop/admin/images/ih-test.jpg
gif --> /webshop/webshop/admin/images/ih-test.gif
It has to be for example /bmz_cache/3/33f0b2cdfebcc994659514b33f516d25.image.141x80.png
Why?
You may find the answer here:
http://forums.breakmyzencart.com/t68-couple-hints.html
Good luck,
f.
Re: Image Handler 2 Support
Tried the patches for the previewarea as suggested in t68-couple-hints.html.
Path issues are solved with the patch. Only thing is that both original and product image in PNG format are still missing. The default PNG image is showing fine.
Added the (int)$quality/100 patch to the bmz_image_handler.class.php file (line 646 in ZC1.3.5) in an attempt to correct this.
Emptied cache (manually cause 'Clear image cache' still not working) and tried again. Same result, no original and product image showing for PNG. Cache does hold both images but these are corrupted.
What am I missing?
Re: Image Handler 2 Support
Found out what the problem is with the PNG files. Uploaded the patches made to the bmz_image_handler.class.php and image_handler.php files to my liveserver and they work just fine. Figure my testserver has an issue generating the PNG files where it works fine with GIF and JPG.
I'll tackle that later so disregard my previous question. Thanks fricy for pointing me in the right direction.
In the mean time there's still the issue with the 'Clear Image Cache' not working and the need for all Small Image and Listing dimensions to be the same (see my earlier postings).
Any pointers?
Re: Image Handler 2 Support
When I install this mod I get the following errors.
Code:
Warning: Division by zero in /home/cell/public_html/includes/classes/split_page_results.php on line 76
1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX_DISPLAY_PRODUCTS_LISTING' at line 7
in:
[select p.products_quantity, p.products_id, p.products_type, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from cell_products_description pd, cell_products p left join cell_manufacturers m on p.manufacturers_id = m.manufacturers_id, cell_products_to_categories p2c left join cell_specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '76' limit -0, MAX_DISPLAY_PRODUCTS_LISTING]
If I remove it from the database the site works normal.
Also get this at the top of the site
Code:
Warning: Variable passed to each() is not an array or object in /home/cell/public_html/includes/classes/db/mysql/query_factory.php on line 114
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cell/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/cell/public_html/includes/functions/sessions.php on line 102
Warning: Cannot modify header information - headers already sent by (output started at /home/cell/public_html/includes/classes/db/mysql/query_factory.php:114) in /home/cell/public_html/includes/init_includes/init_templates.php on line 78
I am using the newest vewrsion of this mod and also 1.3.5. I have tried everything to fix it but nothing seems to work.
Any ideas would be really appreciated.
Thanks in advance
Re: Image Handler 2 Support
<?xml version="1.0"?>
<?xml-rant type="text/rant"?>
<rdf:RANT>
<Resource rdf:whinge="main rant">
With all of the headaches that the line 126, line 124 problem is causing and with all of the updates to code that are spread around both this and the authors forum, why the hell aren't all of the fixes applied to the downloadable version? I just downloaded a copy (Sep 20 2006) expecting all of the problems that I had initially to be sorted out - BUT NO! All of the original code errors that I spent hours sorting out, referring back to and decyphering the suggestions in the forums were still there.
I happened to make a record of the changes that I made previously to remove the JavaScript errors in IE and fix the preview image error, so this time around it only took a few minutes.
Once all of the errors are removed, this is actually quite a good contribution. If the author spent more time on his code rather than begging on his own site as well as in the admin area of installed Zen Carts, maybe he would make life a lot easier for the rest of us. Then maybe, just maybe a few more people would actually donate to him.
</Resource>
</rdf:RANT>
Re: Image Handler 2 Support
OK, I understand that that's a rant and must be taken with a grain of salt, but in all fairness to Tim, I think he has other things on the go too, like university. I have no idea why he's been so quiet lately, but I have been here long enough to know that when he can, Tim is a very helpful and prolific poster to these forums. You're right that this is a good module. It's the one 3rd-party mod that I find pretty much indispensable.
Re: Image Handler 2 Support
Does anyone which files were updated in the new 9/16 IH release.
Could someone post a simple list of which files to update - ? I had just installed the 135 from scratch...
Re: Image Handler 2 Support
purple-circle...rant or not, that's a completely unjustified attack on someone who has made massive contributions to ZenCart through his modules. He is not charging for his work, and indeed, his approach is no more begging than is that of the ZC team themselves.
So, while you're demanding this young student spends more time on his free contributions to Zencart rather than his studies, just how much have you donated to him as a thankyou for his work to date?
You are well out of order in your attitude.
And if you've got it fixed, why don't you offer an updated version to the ZenCart team for addition to the downloads site - especially as Tim seems to be otherwise engaged at the moment.
Re: Image Handler 2 Support
Not to ######## in or anything, but the latest version in the downloads a working version, I have it installed on 14 different sites and works fine, even though I mad e a few mistakes and worked them out, but like said above its free, cant expect a paid job and free income.
By the way what exactly is it doing on your site?