Problems with gallery after migration on server

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
xxtomxx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jan 03, 2012 10:24 pm

Problems with gallery after migration on server

Post by xxtomxx »

I migrated my website to a server after this I have two problems with the gallery module:

1. I can't select images in the upload page , so I can't upload images

2. If I upload images via ftp in the gallery I get the following error message:

Fatal error: Out of memory (allocated 31719424) (tried to allocate 12220 bytes) in <PATH>/tom/modules/Gallery/lib/class.Gallery_utils.php on line 516

Who can help me?

Tom
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problems with gallery after migration on server

Post by Dr.CSS »

Check the system information page to see if you have any yellow ! or red X, it sounds like you may have less memory on this server than the last one...
xxtomxx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jan 03, 2012 10:24 pm

Re: Problems with gallery after migration on server

Post by xxtomxx »

Dr.CSS wrote:Check the system information page to see if you have any yellow ! or red X, it sounds like you may have less memory on this server than the last one...

Hello,

thanks for answering.

Here are mysystem infos



----------------------------------------------

Cms Version: 1.11.11

Installed Modules:

CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
MicroTiny: 1.2.7
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
TemplateExternalizer: 2.1.3
FormBuilder: 0.7.3
Captcha: 0.4.6
Guestbook: 1.4_RC2
CGExtensions: 1.42.2
FrontEndUsers: 1.24.1
JM_Forum: 1.0.0
Statistics: 1.1.3
OwnersManual: 1.0.3
MysqlDump: 1.3.1
SelfRegistration: 1.8.2
Gallery: 2.0.1
CustomContent: 1.10
CGSimpleSmarty: 1.7.4
Uploads: 1.18.4


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 40000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.5.19
md5_function: An (Ja)
gd_version: 2
tempnam_function: An (Ja)
magic_quotes_runtime: Aus (Nein)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 120M
max_execution_time: 50000
output_buffering: 0
safe_mode: Aus (Nein)
file_uploads: An (Ja)
post_max_size: 8M
upload_max_filesize: 40M
session_save_path: /tmp (1777)
session_use_cookies: An (Ja)
xml_function: An (Ja)
xmlreader_class: An (Ja)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.1.73
Server Db Grants: Gefunden eine "Alles gewähren"-Anweisung, die als geeignet scheint
Server Time Diff: Keine Abweichung der Zeit im Dateisystem gefunden


----------------------------------------------


Any Idea? Output buffering?
JohnnyB
Dev Team Member
Dev Team Member
Posts: 731
Joined: Tue Nov 21, 2006 5:05 pm

Re: Problems with gallery after migration on server

Post by JohnnyB »

If you are uploading a lot of images via FTP and/or a lot of heavy images, the Gallery probably has to read all of those and do its thing to get them into the database, create thumbs, etc. That scripting combined with an huge amount of photos can eat up the memory limit.

Maybe try

memory_limit: 256M

or

memory_limit: 384M

if the host allows and the resources are available.

But, if it keeps timing out / running out of memory, upload and process less files at a time.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
xxtomxx
Forum Members
Forum Members
Posts: 20
Joined: Tue Jan 03, 2012 10:24 pm

Re: Problems with gallery after migration on server

Post by xxtomxx »

Thank you. I solve the problem. I changed the hoster and It runs.
I think the hoster don't give correct RAM and he doesn't take care of their clients

Tom
Post Reply

Return to “Modules/Add-Ons”