[solved] 2048M memory limit but error in installer 2.0.1.1

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
reinhardmohr
Forum Members
Forum Members
Posts: 112
Joined: Sun Aug 06, 2006 2:36 pm

[solved] 2048M memory limit but error in installer 2.0.1.1

Post by reinhardmohr »

Hi,
I‘d really be glad and thankful if someone could help me. This is my third install of CMSMS 2.x but the first I ran into problems while installing.
info.php shows 2048M of memory. But the installer stops on step 3 with some warnings and an error message for insufficient memory.
The weird thing: The installer recognizes 2048M but still tells me I need 16M or 32M. Here is the report of step 3 (I installed in a folder called cms):
_________________________________________________
Creating a new CMSMS 2.0.1.1 website
Image

Then I tried to find a solution:
1) I called the hosting provider – he had never heard of such a problem, was polite, but couldn't help
2) searched the CMSms-forum but couldn't find a solution
3) tried a bit around with an own php.ini – but I am not a specialist, so I had no success
4) then I downloaded the expanded installer and tried this one – but came to the same result
5) then I downloaded the installer for 1.12, expanded it and uploaded it to the server. The installer worked, but the same error. Anyhow I could proceed on my own risk. The installation then worked as expected.
6) When I went to the admin panel of my fresh 1.12-installation I got this system information:
----------------------------------------------
Cms Version: 1.12.1
Installed Modules:
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.7
MicroTiny: 1.2.9
ModuleManager: 1.5.8
News: 2.15.2
Search: 1.7.13
ThemeManager: 1.1.8

Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 1024000000
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.4.45-0+deb7u1
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 2048M
max_execution_time: 1200
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 2048M
upload_max_filesize: 1024M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)

Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.44
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
----------------------------------------------
ATTENTION:
The admin panel gave me this text that I pasted above. But it showed these errors, too:
Image

Could someone please help me?
And show me in the right direction?

What else can I provide as information?

Thanks a lot

Reinhard
Last edited by reinhardmohr on Fri Nov 06, 2015 1:15 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: 2048M memory limit but memory error in installer for 2.0

Post by calguy1000 »

While I would not recommend 2GB of memory limit for PHP unles absolutely required, it should still work. it's probably some kind of casting error or something.

My experience tells me that the more memory you have given PHP, the slower PHP is (depending upon configuration of course)

I will look into it.

Thank you for providing all of that information. It really helps.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: 2048M memory limit but memory error in installer for 2.0

Post by calguy1000 »

Yep, it's actually an integer overflow issue.
fixed in SVN for the next release.

In the interim, I'd suggest lowering your PHP memory limit temporarily at least.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: 2048M memory limit but memory error in installer for 2.0

Post by Jeff »

Depending how your webserver/PHP reserves/allocates memory having the memory limit this high will memory shortage/paging issues.

It will also allow programs with memory leak/overflow issues to run rampant and cause problems on your system.

The highest I would suggest is 128M.
reinhardmohr
Forum Members
Forum Members
Posts: 112
Joined: Sun Aug 06, 2006 2:36 pm

Re: 2048M memory limit but memory error in installer for 2.0

Post by reinhardmohr »

Thanks everybody for helping!

And thanks, calguy, for the quick response and the help. I called the hoster and when I mentioned "integer" he was set on the right path. He simply reduced the php memory limit to 2040M (down from 2048M) and this did the trick.
Then the installed version 1.12.1 threw no more errors.
And then I could run the phar installer without any problems!
It indicated perfectly the php memory and the installed CMSms version and upgraded without interruption to the latest version.

Thanks for this phar installation and upgrading installer! That's a great idea!

Thanks for helping and good luck everybody for developing CMSms!

Reinhard
Locked

Return to “[locked] Installation, Setup and Upgrade”