Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Support thread for the Image Magic contribution


tomjmul

Recommended Posts

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 ?

Link to comment
Share on other sites

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

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
Link to comment
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

Link to comment
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
Link to comment
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

Link to comment
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.

Link to comment
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........

Link to comment
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......?!

Link to comment
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

Link to comment
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
Link to comment
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:

Link to comment
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
Link to comment
Share on other sites

Alright, so I think I've fixed the } error but I can't get any images to display. It's far to late and I need to get some sleep so I'll post again tomorrow to try to get this working.

Link to comment
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....

Link to comment
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:

Link to comment
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.

Link to comment
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)

Link to comment
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:

Link to comment
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

Link to comment
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:

anyone

Link to comment
Share on other sites

Hi,

 

I'm too having problems with the 'parse error' and cant see a solution in this thread. I followed the instructions once and got the error, so I installed it again after I had reinstalled my backups and I got the exact same error again.

 

help please!

 

Heres the error, I just get a blank page with this at the top

Parse error: syntax error, unexpected T_FUNCTION, expecting T_STRING in /home/discoun/public_html/includes/functions/html_output.php on line 75

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...