PHP errors returned in known good script

Status
Not open for further replies.

dblaine21

New Member
Messages
7
Reaction score
0
Points
0
I have a Flash slide show installed at http://danlphotos.x10.mx/test22/. It uses PHP, javascript, and Flash. The files are known good files that work fine on another hosting site that I have tried, but they give errors on the x10 site. Please advise. Samples of the error log are below:

[26-Oct-2010 17:06:32] PHP Warning: imagesx(): supplied argument is not a valid Image resource in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 8
[26-Oct-2010 17:06:32] PHP Warning: imagesy(): supplied argument is not a valid Image resource in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 9
[26-Oct-2010 17:06:32] PHP Warning: Division by zero in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 11
[26-Oct-2010 17:06:32] PHP Warning: imagecreatetruecolor() [<a href='function.imagecreatetruecolor'>function.imagecreatetruecolor</a>]: Invalid image dimensions in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 13
[26-Oct-2010 17:06:32] PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 14
[26-Oct-2010 17:06:32] PHP Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 18
[26-Oct-2010 17:06:32] PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 20
[26-Oct-2010 17:06:33] PHP Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 21

[26-Oct-2010 17:07:02] PHP Warning: opendir() [<a href='function.opendir'>function.opendir</a>]: open_basedir restriction in effect. File(../pictures/01.a02a.jpg&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: imagesx(): supplied argument is not a valid Image resource in &lt;b&gt;/home/cali30us/public_html/test22/imagin_scripts/resize.php&lt;/b&gt; on line &lt;b&gt;8&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: imagesy(): supplied argument is not a valid Image resource in &lt;b&gt;/home/cali30us/public_html/test22/imagin_scripts/resize.php&lt;/b&gt; on line &lt;b&gt;9&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: Division by zero in &lt;b&gt;/home/cali30us/public_html/test22/imagin_scripts/resize.php&lt;/b&gt; on line &lt;b&gt;11&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: imagecreatetruecolor() [&lt;a href=\'function.imagecreatetruecolor\'&gt;function.imagecreatetruecolor&lt;/a&gt;]: Invalid image dimensions in &lt;b&gt;/home/cali30us/public_html/test22/imagin_scripts/resize.php&lt;/b&gt; on li in /home/cali30us/public_html/test22/imagin_scripts/read.php on line 15
[26-Oct-2010 17:07:03] PHP Warning: opendir(../pictures/01.a02a.jpg&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: imagesx(): supplied argument is not a valid Image resource in &lt;b&gt;/home/cali30us/public_html/test22/imagin_scripts/resize.php&lt;/b&gt; on line &lt;b&gt;8&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: imagesy(): supplied argument is not a valid Image resource in &lt;b&gt;/home/cali30us/public_html/test22/imagin_scripts/resize.php&lt;/b&gt; on line &lt;b&gt;9&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: Division by zero in &lt;b&gt;/home/cali30us/public_html/test22/imagin_scripts/resize.php&lt;/b&gt; on line &lt;b&gt;11&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: imagecreatetruecolor() [&lt;a href=\'function.imagecreatetruecolor\'&gt;function.imagecreatetruecolor&lt;/a&gt;]: Invalid image dimensions in &lt;b&gt;/home/cali30us/public_html/test22/imagin_scripts/resize.php&lt;/b&gt; on line &lt;b&gt;13&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Warning&lt;/b&gt;: imagecopyresamp in /home/cali30us/public_html/test22/imagin_scripts/read.php on line 15
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
[26-Oct-2010 17:06:32] PHP Warning: imagesx(): supplied argument is not a valid Image resource in /home/cali30us/public_html/test22/imagin_scripts/resize.php on line 8

Go to resize.php
Go to line 8
See what the arguement to imagesx() is.
Put an echo statement before line 8 so you can tell what the argument actually is when the script is run.
 

dblaine21

New Member
Messages
7
Reaction score
0
Points
0
OK, looks like this may have to do with automatic thumbnail creation. The requirements for this slide show is that PHP needs GD2 library activated. Is GD2 activated on X10?
 

dblaine21

New Member
Messages
7
Reaction score
0
Points
0
I think your host may have an issue with the file names. I renamed my photos from 01.name1.jpg to name1.jpg, etc, and I don't get errors.
 
Status
Not open for further replies.
Top