Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support distorted view after image upload - bug?
Gebeer
Posted on 09 Feb 2010, 10:13:20

Access: Member
Total Posts: 9
Joined: 2010-02-09

Hello,
this is really a great piece of software.Thank you.
I've installed and everything seemed to work good until I uploaded the first image.
After pressing the upload button, I get a distorted confirmation page without navigation bar.
Heres a screenshot:
[img]http://abstrus.de/images/after-image-upload.jpg[/img]
I've tried it with 2 installations on 2 different machines with firefox,IE. And it always happens. Has anybody else experienced this? And is there a fix?

Cheers
gebeer
#1832
Chris
Posted on 09 Feb 2010, 16:05:06

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I think this may be due to register_globals, does your server have the php setting register_globals set to ON?. If so then that could cause a problem as the main menu and the image upload module use the same name for a variable and an array.

If you do have it on, try disabling it in your php.ini file, restart the server then try uploading again to see if the problem still persists.
#1834
Gebeer
Posted on 10 Feb 2010, 00:48:23

Access: Member
Total Posts: 9
Joined: 2010-02-09

Hi Chris,

thanks for the fast reply.
register_globals is already set to off. No errors in the apache error.log. One of the machines is Linux with Apache2,PHP Version 5.2.6-3ubuntu4.5. The other one Win XP with latest version of AppServ. Any other ideas?
#1837
Chris
Posted on 10 Feb 2010, 01:07:38

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

This is very strange indeed. Does this happen on both machines?. Probably a silly question but is error_reporting and display_errors set correctly?

The screenshot suggests an error has happened and has halted the rest of the page loading.

Does the same thing happen when you try uploading a file via Options > File Uploads?
#1838
Last edited by Chris at 2010-02-10 01:11:45 Reason:
Gebeer
Posted on 10 Feb 2010, 03:48:56

Access: Member
Total Posts: 9
Joined: 2010-02-09

Quote:
This is very strange indeed. Does this happen on both machines?. Probably a silly question but is error_reporting and display_errors set correctly?
error_reporting = E_ALL & ~E_NOTICE and display_errors = On
I've set php to output errors to a log file. But it won't put out anything.

Quote:
Does the same thing happen when you try uploading a file via Options > File Uploads?
Yes. Also when I update info on an image. On the distorted page choosing Category: 'All Categories' takes me back to the correctly displayed image upload page. Thumbs for newly added images are not correct.

I'll set your system up on my live server and let you know what happens there.
#1839
Gebeer
Posted on 10 Feb 2010, 04:50:25

Access: Member
Total Posts: 9
Joined: 2010-02-09

When I try uploading an image through the file uploader, it says: Invalid file extension and I get this error message in apache error.log:
PHP Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /var/www/pon/news/modules/thumbnails.php on line 136, referer: http://localhost/pon/news/admin.php?action=options&mod=imageuploads&catid=-1&view=thumbnails
[Wed Feb 10 05:45:39 2010] [error] [client ::1] PHP Warning: Cannot modify header information - headers already sent by (output started at /var/www/pon/news/modules/thumbnails.php:136) in /var/www/pon/news/modules/thumbnails.php on line 139, referer: http://localhost/pon/news/admin.php?action=options&mod=imageuploads&catid=-1&view=thumbnails

My live server hasno MySQLi extension. Waiting for the provider to install it...
#1840
Gebeer
Posted on 15 Feb 2010, 02:10:23

Access: Member
Total Posts: 9
Joined: 2010-02-09

Hello Chris,

the system is now up and running on my live server with register_globals=Off.
But the problem still persists.
I will PM you the URL and login data so you can check it yourself.
Cheers
gerhard
#1875
Chris
Posted on 15 Feb 2010, 15:51:04

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I replied to your private message.
#1878
Chris
Posted on 15 Feb 2010, 17:43:54

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

This is now fixed. If anyone else is getting this problem, download version 3.4 of the script again then grab both modules/modimageuploads.php & modules/modfileuploads.php from it and replace your own copies of these files with the new ones.
#1882
Network-13.com © 2013