Images Missing after upgrade 1.2.8 -> 1.3.3

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
peteburgess
Posts: 18
Joined: Thu 9. Nov 2006, 20:29

Images Missing after upgrade 1.2.8 -> 1.3.3

Post by peteburgess »

I'm pretty sure I took all the right steps in the upgrade but I seem to have one problem. I can not see the images in the file browser. This is the case with the images that were there before the upgrade but also the images I try to upload. When I try to upload an image to the file list it seems to work. You can see it listed and it has a file size. I also do not get any errors. The problem is when I try to view it. I click it in the list but the preview is blank. Also, when I try to add it to a content part, it doesn't show up in the popup browser. I can see the directory for the file I created but not the image. Any help would be greatly appreciated. Thanks.
peteburgess
Posts: 18
Joined: Thu 9. Nov 2006, 20:29

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by peteburgess »

Anybody have an idea of what could be the problem?
User avatar
cyppher.nl
Posts: 138
Joined: Wed 19. May 2004, 18:38
Location: Hilversum, Netherlands

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by cyppher.nl »

peteburgess wrote:Anybody have an idea of what could be the problem?
are all directory rights ok?
How do you do? And how do you do your wife?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by flip-flop »

And the name of the changed folders ok?
e.g. phpwcms_filestorage -> filearchive

Or did you renamed the folder names in your config e.g. $phpwcms['file_path'] = 'phpwcms_filestorage';

Site/DB -charset the same in 1.2.8 / 1.3.3 ?

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
perdy
Posts: 13
Joined: Mon 6. Dec 2004, 22:58
Location: Copenhagen, Denmark

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by perdy »

Strange... I've just observed samme problem in 1.3.5

Only thing is that 14 days ago there was no problem.
And the only difference is that the new "problem"-images are bigger (around 1.4 Mb).
- can that be an issue..?
file_maxsize=2097152 in conf.inc.php

Best regards
Per
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by flip-flop »

$phpwcms['file_maxsize'] = 52428800; //Bytes (50 x 1024 x 1024)
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
perdy
Posts: 13
Joined: Mon 6. Dec 2004, 22:58
Location: Copenhagen, Denmark

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by perdy »

Thank you, Knut.
I tried to raise the "file_maxsize", but it didn't worked.
Then I thought it had something to do with permissions. But, no...

Finally, I realized that the filesize are in pixels, not i MB, and my "problem"-image was 2816x2112 - indeed more than 1024x1024.
When I downsize the image the problem is gone :)

So I guess it's also peteburgess problem...

Knut, can you explain what the "50" stands for in the (50 x 1024 x 1024).
And thank you again for your answer.

Best Regards - Per
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by flip-flop »

I think that isn t an upload problem by the cms.

Code: Select all

http://forums.afterdawn.com/thread_view.cfm/608068
If it is, you haven´t enough - memory or max_execution_time for scripting.
A compressed file like *.jpg has often in uncompressed mode a multiple range. Using this real size file the GD-lib is rendering a new picture. -> memory_limit / max_execution_time

Please have a look to your phpinfo() -> upload_max_filesize

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
peteburgess
Posts: 18
Joined: Thu 9. Nov 2006, 20:29

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by peteburgess »

wow. ask and you shall receive. thanks for all the comments. i will try these suggestions and get back to you. thanks again.
User avatar
perdy
Posts: 13
Joined: Mon 6. Dec 2004, 22:58
Location: Copenhagen, Denmark

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by perdy »

flip-flop wrote:I think that isn t an upload problem by the cms.

Code: Select all

http://forums.afterdawn.com/thread_view.cfm/608068
If it is, you haven´t enough - memory or max_execution_time for scripting.
A compressed file like *.jpg has often in uncompressed mode a multiple range. Using this real size file the GD-lib is rendering a new picture. -> memory_limit / max_execution_time

Please have a look to your phpinfo() -> upload_max_filesize

Knut
Thank you, Knut. It makes sense. :)

I uploaded my "problem"-image (2816x2112) to an other web-hotel with phpwcms 1.3.5, and here there was no problem at all.
In phpinfo it said:
upload_max_filesize = 16M
memory_limit = 128M

The other web-hotel, with the problems phpinfo said:
upload_max_filesize = 2M
memory_limit = 8M

So I guess it wasn't the file size, but rather the poor server-setting that caused the missing rendering.

- Per
SbITbIDOBR
Posts: 2
Joined: Tue 10. Feb 2009, 18:55
Contact:

Re: Images Missing after upgrade 1.2.8 -> 1.3.3

Post by SbITbIDOBR »

I had the same problem when I moved my site to a new server. The new server had no ImageMagick. The problem resolved by editing the configuration file conf.inc.php, namely the parameter $ phpwcms ['imagick']. After replacing the value on "GD" it began work. Another solution is to install ImageMagick.
PS Check the image convertor values in configuration file.
Post Reply