Jump to content
Sign in to follow this  
tomjmul

Support thread for the Image Magic contribution

Recommended Posts

I have a problem , at my webshop at www.ATUALOJA.COM the imagemagic has no problems , everything is correct but when i change to SSL HTTPS ( https://www.atualoja.com ) the images dos not appear .... (broken link)

Do u know any solutions for that ?

Thanks in advance

Edited by kAnAnA

Share this post


Link to post
Share on other sites
I have a problem , at my webshop at www.ATUALOJA.COM the imagemagic has no problems , everything is correct but when i change to SSL HTTPS ( https://www.atualoja.com ) the images dos not appear .... (broken link)

Do u know any solutions for that ?

Thanks in advance

I tried to access this: https://atualoja.com/imagemagic.php?img=ima...;h=78&page=

and it says Warning: glob(): SAFE MODE Restriction in effect.

If you have in your cgi-bin a php.ini file, try to add this line: safe_mode=off

I'm not sure if it will work, but if it doesn't, remove that line from php.ini.

Share this post


Link to post
Share on other sites

BTW, I noticed something on your website...

I don't think those 2 links "Login de Clientes" and "Sair da TUA conta" in your header look professional.

Go to includes/header.php, find

<tr><td><img src="images/m07.gif" align="absmiddle" height="8" width="8">   <a style="font-size: 10px;" href="login.php" class="ml">Login de Clientes</a><br></td></tr>
				<tr><td><img src="images/m07.gif" align="absmiddle" height="8" width="8">   <a style="font-size: 10px;" href="logoff.php" class="ml">Sair da TUA conta</a><br><br></td></tr>

and replace with

<tr><td><img src=images/m07.gif width=8 height=8 align=absmiddle>   <?php if (tep_session_is_registered('customer_id')) { ?><a style="font-size:10px" href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class=ml><?php echo HEADER_TITLE_LOGOFF; ?></a><br><?php } else  echo '<a style="font-size:10px" href="' . tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL') . '" class=ml>' . HEADER_TITLE_LOGIN . '</a>'; ?><br><br></td></tr>

The visitors will see "Login de Clientes" if they are not logged and "Sair da TUA conta" will be displayed only when are looged in.

Share this post


Link to post
Share on other sites

Thanks a lot Invasi0n for the advice ! I have change it in my site.

well about imagemagic i don?t have access to php.ini and i send an e-mail to my hosting company to solve the problem.

Another question if u know .... in my product_info.php the imagemagic does not appears correct .... i thing is about the javascript popup modifications . In this line in file product_info.php i have change

<div id="showimage"></div>
<script language="javascript"><!--
document.write('<?php echo '<a href="'. DIR_WS_IMAGES . $product_info['products_image'].'" onClick="return enlarge(\\\''. DIR_WS_IMAGES . $product_info['products_image'].'\\\',event,\\\'center\\\','.$size[0].','.$size[1].')" ><img src="'. DIR_WS_IMAGES . $product_info['products_image'].'" border="0" width="78" height="78"></a>'; ?>');
//--></script>
<noscript>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</noscript>

I want this code to popup the image but with imagemagic ON the image does not appear and i have to change

border="0" width="SMALL_IMAGE_WIDTH" height="SMALL_IMAGE_HEIGHT">

to

border="0" width="78" height="78"

. But in this case the resize is not make !!!

Do u have any solutions for that ?

Share this post


Link to post
Share on other sites

I haven't seen a site yet that has water mark on........anyone? How do you get watermark to work. I've said yes to everyone and don't see anything!!!

 

What's up?

 

Nigelman :thumbsup:

Share this post


Link to post
Share on other sites
also in my admin my LOGO is not showing....... I was told my one member here to take out the size of the logo but that hasn't worked for me....only the invoice and packing slip have worked for that. When I right click the LOGO on the top left in the admin I get this tag....

 

http://tsurishopjapan.com/admin/imagemagic...;h=72&page=

 

I don't get it?

 

Nigelman :thumbsup:

Hi,

I think this contribution is made for catalog part, not for admin.

When I installed this contribution, I modified catalog part only. And about watermark, i tried only "Text Watermark" function, which I like more then "Graphic Watermark".

Edited by invasi0n

Share this post


Link to post
Share on other sites

My graphic watermark works (if I decide to turn it on) but the text one has never worked for me either.

Share this post


Link to post
Share on other sites

I installed this pretty easily, and it is working on the thumbnails, but not on the larger pop-ups. I've set it to display on pop ups, but it won't work Any help is appreciated!

Share this post


Link to post
Share on other sites
Tom,

 

I have installed, but not producing images. Image info does point imagemagic.php. I am running Windows server.

 

Tim

 

:'(

 

Hey Tim,

 

Having the same problem with my install. Installed the SQL bit fine into the DB but after modifying the two files as explained in the instructions I cannot for the life of me understand why the website just stops working and does not even display the OScommerce site front page.

 

If someone could shed some light on this please?

 

Thanks

 

S

Share this post


Link to post
Share on other sites

Hello,

I was install Image Magic it work veri good I like it but have problem drop down list is empty in Text Watermark Font Name and Watermark Image File. Have fonts and images in catalog/includes/imagemagic/watermarks/ and /catalog/includes/imagemagic/fonts/

 

I have one question may I add more pics in product info I want to have 5 or more pics

Edited by Paradisebg

Share this post


Link to post
Share on other sites

Hi just installed the imagemagic1_5 contribution, had some difficulties since there was an extra } in the html_output file anyways got it working finally

 

2 Questions,

 

First of all when I upload a new image it for some reason in thumbnail form it doesn?t seem to keep its dimensions

 

Second, the images load quite slowly when the website is loaded for the first time, is there any way to speed this up?

 

If someone could get back to me ASAP, its quite urgent,

 

Thanks

 

Tariq

Share this post


Link to post
Share on other sites

well my product images just show up with that red cross but clicking on the product image location its got the imagemagic script in it and the proprtions seem to be working.

 

Is this a database error?

 

when i tried to run the sql query it just came up with page cannot be displayed. Im not entirely sure what to do in step 3 with the database.

Share this post


Link to post
Share on other sites

Hi I installed this contribution and it worked perfectly in the real web server, althought it was not working in my local testing server.

Now, one new problem is , on adding the product from the admin section, it does not show the image preview after adding the image and confirming stage. .....is this the problem of imagemagic??...

 

Please any one find out the problem........

Share this post


Link to post
Share on other sites

Hi,...

I install this contribution....the php is file from contribution..but i i see no image, with the big x in left corner..

 

First you say to put all prb here and updates...now for each prb i have to read all 44 pages?

 

i make the instalation..like you say on readme.

thumbnails where need to be created? exact location......?!

Share this post


Link to post
Share on other sites

Hi!

I installed Image Magic on my os. Its was very easy but when i want to set it up, this is what I get when I clic on "Watermark Image File" in the admin tool :

Fatal error: Call to undefined function: tep_cfg_pull_down_installed_watermarks() in /home/httpd/vhosts/objectif-web.ch/subdomains/galerie/httpdocs/admin/configuration.php(125) : eval()'d code on line 1

 

 

Does some body knows why?

 

Regards,

 

YS

Share this post


Link to post
Share on other sites

Hi,

I've installed IM and the admin side works, but whne I switch IM on, all the site images display as missing images (big X).

Checking a link on it's own (https://giftperfect.co.uk//imagemagic.php?img=images/GVE0059.jpeg&w=120&h=90&page=)

I get a PHP error "Call-time pass-by-reference has been deprecated - argument passed by value..." apparently caused by "&" being used in some function calls in imagemagic.php

I've read that the fix is to remove the "&"s or to change a value in php.ini (allow_call_time_pass_reference to true). removing the &s resulted in an error "no access to db" and I have a shared host and no access to php.ini

 

Any ideas on a fix?

Edited by bashibosh

Share this post


Link to post
Share on other sites

Fixed it!

An update for anyone who may come across the same problem, I removed the '&' from the offending functions in imagemagic.php (lines 274 - 279).

Then I got an error: "Error,Database Connection", this was cause by the facxt that in my database, all tables start with "oscommerce_" and the sql call in imagemagic.php does not.

 

To fix, I changed the following:

Line 28 was:

$sql="select configuration_key as cfgKey, configuration_value as cfgValue from configuration where configuration_group_id='333' or configuration_group_id='4'";

 

now reads:

$sql="select configuration_key as cfgKey, configuration_value as cfgValue from oscommerce_configuration where configuration_group_id='333' or configuration_group_id='4'";

 

Line 40 was:

$sql="update configuration set configuration_value ='".$append_hash."' where configuration_key='LAST_HASH'";

 

now reads:

$sql="update oscommerce_configuration set configuration_value ='".$append_hash."' where configuration_key='LAST_HASH'";

 

It took me a while to find, hope it is useful to someone else

 

Ciao

:thumbsup:

Share this post


Link to post
Share on other sites

I am having the following error after installing. I've tried re-installing a few times but the same error kepts appearing. I searched through this thread but didn't see the solution. If I missed it, my apologies.

 

Parse error: syntax error, unexpected '}' in /home/cherish/public_html/includes/functions/html_output.php on line 228

Share this post


Link to post
Share on other sites

bashibosh thx for the fix...many many thx:)

 

Now It`s working , but it`s working to much, even to buttons from the page....

 

So, i look on php and see if there is:

tep_image_button('button_reviews.gif', IMAGE_....... i see the button with watermark and all i have active

 

but if is like this:

']) . tep_image_submit('button_in_cart.gif', IMAGE_BUT....with submit, the button it`s okey, i see just the image from button , not with watremarks and ...

 

Now , if i change all from tep_image_button to tep_image_submit you think is any problem?

 

Or is anothe solution?

 

P.S. Srry about the english....

Share this post


Link to post
Share on other sites

Yes, I got image magic working awhile back. It was on a Red Hat9 php 4.2, apache2 machine with GD 1.6.

Took me awhile. Then I had to move site to a Red Hat Commercial system, apache2, php 4.3 GD 2.0.

Was working good there. Now I've had to move it to a Fedora 4, php 5, apache2 GD 2.0. Got it all working on that system. Then for security reasons I had to disable Register Globals to off modify oscommerce accordingly and now images quit working. Since soon everyone will have this problem as Register globals are deminished now. Does someone know exactly how to fix this? Or must I look for this needle? Glancing at the code it looks like it's written for globals off already. I can only assume this is the problem as it worked perfectly until that change was made. Could it be some change I've made in oscommerce for globals off compatibilty?

Thanks for any help.

 

:thumbsup:

Share this post


Link to post
Share on other sites
Yes, I got image magic working awhile back. It was on a Red Hat9 php 4.2, apache2 machine with GD 1.6.

Took me awhile. Then I had to move site to a Red Hat Commercial system, apache2, php 4.3 GD 2.0.

Was working good there. Now I've had to move it to a Fedora 4, php 5, apache2 GD 2.0. Got it all working on that system. Then for security reasons I had to disable Register Globals to off modify oscommerce accordingly and now images quit working. Since soon everyone will have this problem as Register globals are deminished now. Does someone know exactly how to fix this? Or must I look for this needle? Glancing at the code it looks like it's written for globals off already. I can only assume this is the problem as it worked perfectly until that change was made. Could it be some change I've made in oscommerce for globals off compatibilty?

Thanks for any help.

 

:thumbsup:

 

Well I poked around and found the undefined variable, "$page". Just changed it to $_GET['page'] in 3 places.

Hope this helps you Tom and anyone else.

Share this post


Link to post
Share on other sites

Quick Bump for any new installs:

 

If you're not seeing images in your new installation, complete the ImageMagic installation by:

creating /thumbnails/images and chmoding both directories 777.

 

This isn't mentioned in the docs and it doesn't appear to create the directories for you (at least not on my server)

Share this post


Link to post
Share on other sites

well since my shop is set up with out the catalog directory can anyone tell me how should i go about chainging it so i can use the watermark image files in the imagemagic option, since all i am getting now is a blank white small box, with out the images that are there.

 

my guess is that since it explains where the directory is for the images =(/catalog/includes/imagemagic/watermarks/) it would not work for a site that is setup like mine which is =(/includes/imagemagic/watermarks/)...

 

hope i explained what im struggling with here clearly, as i do not do it well in most cases :blush:

Share this post


Link to post
Share on other sites
bashibosh thx for the fix...many many thx:)

 

Now It`s working , but it`s working to much, even to buttons from the page....

 

So, i look on php and see if there is:

tep_image_button('button_reviews.gif', IMAGE_....... i see the button with watermark and all i have active

 

but if is like this:

']) . tep_image_submit('button_in_cart.gif', IMAGE_BUT....with submit, the button it`s okey, i see just the image from button , not with watremarks and ...

 

Now , if i change all from tep_image_button to tep_image_submit you think is any problem?

 

Or is anothe solution?

 

P.S. Srry about the english....

Andrei,

I've checked my config and all works as expected, so I guess your problem must be something else??

 

bb

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×