This topic is locked

Problem after a PHP Upgrade ?

7/10/2007 8:20:35 AM
PHPRunner General questions
A
asimha author

Good day,
Seems I have a problem ... My provider has just recently upgraded to PHP Version 5.2.3
Since that some functions are no longer working for example after an image upload, there is an error:
chmod() [function.chmod]: Operation not permitted
Nothing has changed and image upload directory is set to 777
Any hints?
Thank you

André

Alexey admin 7/10/2007

Andre,
try to modify generated ..._edit.php and ..._add.php files this way:

Find this line there:

chmod($file[1],0777);



and replace it with:

@chmod($file[1],0777);


Let me know if this helps and we'll add this fix into the next update of PHPRunner.

A
asimha author 7/10/2007

Andre,

try to modify generated ..._edit.php and ..._add.php files this way:

Find this line there:
and replace it with:
Let me know if this helps and we'll add this fix into the next update of PHPRunner.


Thanks Alexey, I made the changes and the result is:
EDIT

chmod($file[1],0777);
PHP error happened

Technical information

Error type 2

Error description imagecreatefromstring() [function.imagecreatefromstring]: Empty string or invalid image

Error file /home/www/3584ef1d9a4e06b4f5916fec98d25abc/web/admin/include/commonfunctions.php

Error line 900

SQL query update `cds` set
In the ADD php, the record is added, the image is uploaded and the thumbnail is created - but the error still appears
PHP error happened

Technical information

Error type 2

Error description chmod() [function.chmod]: Operation not permitted

Error file /home/www/3584ef1d9a4e06b4f5916fec98d25abc/web/admin/cds_add.php

Error line 377

SQL query insert into `cds` ...

J
Jane 7/11/2007

Andre,
please zip and send your files to [email=support@xlinesoft.com]support@xlinesoft.com[/email] or publish your application on the Demo Account and send a URL to your pages to [email=support@xlinesoft.com]support@xlinesoft.com[/email].