Images not uploaded

kpenner

No avatar

2004-12-01 01:21

Fatal error: Call to undefined function: imagecreatefromjpeg() in c:webusedcomputerslibrariesFotoJobs.php on line 250

I get this error and other when attaching pictures.

But all of these problems went away when I got the GD2 extention properly loaded into my apache server. Now it works like a charm.

Rare

No avatar

2004-12-01 04:04

Ok i replaced the lines that were stated by bossman52-2004-11-30 00:44:52, Now that i did that I am getting this error error

Fatal error: Call to undefined function: imagecreatefromjpeg() in G:websiteschadsphotolibrariesFotoJobs.php on line 250

What does this mean?

Rare

treewood (OpenSolution)

Avatar: treewood

2004-12-01 06:44

Rare - You dont have gd2 library included

witaj.net

bossman52

No avatar

2004-12-01 22:08

Hey treewood, do you have any idea what it is that I took out and why they would return false?

ade

No avatar

2004-12-01 23:13

For thos eof us new to php, is there a check we can do for gd2? If it's not there, can we grab it from somewhere to install?

Ade

kpenner

No avatar

2004-12-02 00:07

Ade

By default GD2 comes with the zip distribution of PHP >= 4.3 but it is disabled.
Enabling GD2
If you used only the MSI installer you will not have the GD2 extension installed on your system. Extract the php_gd2.dll into C:PHPextensions (this may be a different folder if you did not accept the default installation directory). If that folder does not exist inside your PHP folder then create it.

Open C:windowsphp.ini or C:winntphp.ini (depending on your system setup) in your favorite text editor (notepad works). Use the find function to search for extension_dir, in notepad use the Edit menu and select Find. For the default PHP installtion this needs to be set to:

extension_dir = "C:PHPextensions"
If you installed PHP to a different folder adjust this accordingly. Now search for gd2, you should see a line like this:

;extension=php_gd2.dll
Simply remove the ";" in front of the line to un comment it so it looks like this

extension=php_gd2.dll
Then restart your web server application and GD2 should be working.

To test to see if GD is working just browse to the testgd.php file in your statsroot. ( http://yoursite.com/stats/testgd.php ) or create a php file with this line <?php phpinfo(); ?>

ade

No avatar

2004-12-02 11:13

Kpenner,

Thanks for the tip but I am doing this from a home PC to a hosted shared linux box. I have SSH, FTP anf HTTP access only, all of which I can work but I don't know much about php.

Is there a command line instruction I can use?

Ade

everal

No avatar

2004-12-02 19:17

hey,

I am having image problems too... I am trying all you say here... let's see if it works..
Just now my head is going to explode, but later I can try it again and post a detailed message about errors.

I send you a pt_br (braziliam portuguease) translation in some days.

everal

everal

No avatar

2004-12-02 19:56

I will repeat ade's post, since it wasn't answered, and it answering that could really help resolving this problem:


(...Please can someone post an example of the syntax in products_photo.php and tell me where the photos are stored (I believe it will be files/products/) so I can do this manually until I sort it out....)
(fro Ade's post)

everal

everal

No avatar

2004-12-02 20:27

I can change the LOGO image, but not the cotegory or the product... :-(

everal

Everal

No avatar

2004-12-03 13:43

My name is Everal and I am trying to install the Quick Cart.

I would like to ask you a little help.

I can't have images at products or categories.

Couldn't you give an example of the syntax in products_photo.php and tell me where the photos are stored so I can do this manually ????

I saw all the posts about this problem, I tried all the suggestions, and yes I have gd2 and the permissions are all ok too.

It just doesn't work.

If I could SEE how is the products_photo.php with some image I would make it works.

Thanks for your attention,

Everal Rimbald

Johnjee

No avatar

2004-12-06 16:20

I think I have the solution, after many many many trials and even more errors or blanks.
- add a directory "products" to the directory files
- don't forget to CHMOD to 777

problem solved...........( for me it works)

luck to you all

JohnJee

armin

No avatar

2004-12-07 13:55

My image upload does not work either.

Is it neccesary to set also the directories
files/ and db/ itself to chmod 777 or only there entries and subdirs?



Loki

No avatar

2004-12-14 08:23

I have tried all the sugestions in this thread and still not working,
the image copys to the products folder but i click save all i get is a blank screen. is there a way i can manualy link images to the product?

thanks,

loki

Ferke

No avatar

2004-12-15 14:17

Hi!

First of all: the best shop, what i ever seen!:-)
Congratulations!

I have two questions - or two problems...:-(
- The upload works, i can see the pictures in the directory (name, size, etc. : O.K.), but not images shown...
- Admin is O.K., but i can not logging out...


Thanks for help.

Ferke:-)

geblek

No avatar

2004-12-15 20:34

hi all .am after install QuickCart v0.2.2 on free hosting t35.com . after try create new product and upload image ,image cant shown but no error.folder file after chmod 777

am frm indonesia

how am I

No avatar

2004-12-15 21:05

what GD2

am frm indonesia

Loki

No avatar

2004-12-15 21:48

I am now getting this error

Warning: Unable to open 'files/products/a75s' for reading: No such file or directory in /libraries/FotoJobs.php on line 241

Warning: getimagesize: Unable to open 'files/products/a75s_m.png_backup.jpg' for reading. in libraries/FotoJobs.php on line 242

is it a problem with the php?

Roman

No avatar

2004-12-16 21:36

I hava the samo problem ...


Warning: Unable to open 'files/products/cake[2]' for reading: No such file or directory in /home/a002mikel/public_html/mikel/1212/libraries/FotoJobs.php on line 241

Warning: getimagesize: Unable to open 'files/products/cake[2]_m.jpg_backup.jpg' for reading. in /home/a002mikel/public_html/mikel/1212/libraries/FotoJobs.php on line 242

Roman

Doug

No avatar

2004-12-18 20:09

I had the same problem; then I checked the server environment and found that I had only PHP 4.1.2 and GD 1.6.2.

So I uploaded the cart program to another server which has PHP 4.3.3 and GD 2.0.15.

And the cart and image uploading and display work fine there.

Back to top
about us | contact