Out of memory error after moving a reliable working site although memory requirements are met

Permalink
After finishing a project built with C5 5.7.5.2 in my local server
environment I moved the site to the server of my client's hosting
company. Opened the index page which loaded as expected,
clicked to open another arbitrary page and instantly got an
error message like:

"Out of memory (allocated 32768000) (tried to allocate 212352 bytes)"

Thereafter I could not load any page, not even the index page which
opened successfully at the first run.

Then I checked the "memory_limit" using phpinfo(), it is 120M and
should really be sufficient. I used 128M on my local server, 64M worked too.
Interestingly, as you can see, the site fails at an allocation of approximately
31.25 MB (32768000 bytes) as if the limit were 32M although supposedly the
limit is 120M.

Tried to find any related info in the forum and found:

https://www.concrete5.org/community/forums/5-7-discussion/error-afte...

Seems to be a similar problem, the error is:

"Out of memory (allocated 30932992) (tried to allocate 6758689 bytes)"

This is 29.5 MB while trying to allocate another 6.4 MB. Again this seems
to be a memory limit at approximately 32 MB although the environment info
reads "120M". Could it be that the php memory_limit info is wrong?

Then I thought I should check if it is possible to make at least a clean
install of C5 on this server. This way I noticed that all system requirements
are met, but the installation failed at "Adding pages and content" and ended
with an empty pink alert and a back button.

Searched the forums again and found:

https://www.concrete5.org/developers/bugs/5-7-4-2/failure-to-install...

This describes a similar case and explains that the only way to install C5
was to set the "Full Site" package aside and choose the "Empty Site" package.

I picked up this hint and could successfully install the empty package. But
actually this didn't help because C5 behaved pretty flakey, it was just unusable.
For example, for testing purposes, I did an upload of an arbitrary image.
Did not get the upload completed dialog as usual and had to reload the
page to find the image in the list. Then I added a page and tried to add an
image block including the test image but the image was missing. Checked
the file manager, it was empty, reloading the page didn't help, clearing the
cache neither. So with this installation I could not even add an image to a page.

Now I am at a loss, my client is waiting and I've run out of patience. I would
be really grateful if anybody could help.


Here is the server info:

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.5.30

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, shmop, SimpleXML, soap, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 50000
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 5000
memory_limit - 120M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 40M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 1440
soap.wsdl_cache_limit - 5


And this is the C5 info of the site I moved:


# concrete5 Version
Core Version - 5.7.5.2
Version Installed - 5.7.5.2
Database Version - 20150731000000

# concrete5 Packages
Addons Lister (2.0.1), Automatic Email Obfuscator (2.0.1), Core Translation Updater (0.1.1), ExchangeCore reCAPTCHA (1.1.1), Honest Websites Back To Top (0.9.4), Login Page Background (0.9), Ronyd Expanded Search Bar (2.0), Spacer (0.9.3), Supermint Theme (3.2.5).

# concrete5 Overrides
blocks/feature/templates/ump_feature/view.css, blocks/feature/templates/ump_feature/view.php, blocks/feature/templates/ump_feature, blocks/feature/templates, blocks/feature, blocks/testimonial/templates/management/view.css, blocks/testimonial/templates/management/view.php, blocks/testimonial/templates/management, blocks/testimonial/templates/management_partner/view.css, blocks/testimonial/templates/management_partner/view.php, blocks/testimonial/templates/management_partner, blocks/testimonial/templates/management_variante/view.css, blocks/testimonial/templates/management_variante/view.php, blocks/testimonial/templates/management_variante, blocks/testimonial/templates, blocks/testimonial, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, blocks/feature/templates/ump_feature/view.css, blocks/feature/templates/ump_feature/view.php, blocks/feature/templates/ump_feature, blocks/feature/templates, blocks/feature, blocks/testimonial/templates/management/view.css, blocks/testimonial/templates/management/view.php, blocks/testimonial/templates/management, blocks/testimonial/templates/management_partner/view.css, blocks/testimonial/templates/management_partner/view.php, blocks/testimonial/templates/management_partner, blocks/testimonial/templates/management_variante/view.css, blocks/testimonial/templates/management_variante/view.php, blocks/testimonial/templates/management_variante, blocks/testimonial/templates, blocks/testimonial, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/de_DE/LC_MESSAGES/messages.mo, languages/de_DE/LC_MESSAGES, languages/de_DE, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/ja_JP/LC_MESSAGES/messages.mo, languages/ja_JP/LC_MESSAGES, languages/ja_JP, languages/nb_NO/LC_MESSAGES/messages.mo, languages/nb_NO/LC_MESSAGES, languages/nb_NO, languages/nl_NL/LC_MESSAGES/messages.mo, languages/nl_NL/LC_MESSAGES, languages/nl_NL, languages/pl_PL/LC_MESSAGES/messages.mo, languages/pl_PL/LC_MESSAGES, languages/pl_PL, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/ru_RU/LC_MESSAGES/messages.mo, languages/ru_RU/LC_MESSAGES, languages/ru_RU, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

View Replies: View Best Answer
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi rabit,

What is the web host you are using?

Have you tried running the project on another web host to test?
rabit replied on at Permalink Reply
Hi MrKDilkington,

thanks for taking the time. This is a shared host at 1und1 (1und1.de).
It is the client's host but I will try to install the site elsewhere and
come back to report.
rabit replied on at Permalink Reply
Installed the site at another host and it works like a charm.
The memory-limit there is nearly the same (128M versus 120M).

So, the question is: Could it be that the readings for "memory_limit"
is something one can not trust? Or is there anything else what could
cause the "Out of memory" error in an environment with sufficient
memory?
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
@rabit

I believe the PHP memory limit could be set higher or lower, but if the web host doesn't have the memory available, it is effectively ignored.

I think it is possible that 1und1.de doesn't allocate that much memory per account or is overloaded.

This is a common problem on discount web hosts.
rabit replied on at Permalink Reply
@MrKDilkington

You are right. I talked with support. It turned out that the memory limit
could not be increased and was in fact set to 32M. phpinfo() tells me that
it is supposed to be 120M. Never thought that the result of checking
memory_limit can be meaningless although this is what I suspected from the
beginning when I asked if it could be that the php memory_limit info is wrong?