PHP Info error if the forum has a language other than English.

Started by User2, July 29, 2024, 02:44:36 PM

Previous topic - Next topic

User2

Hello.
Admin - Main - Maintenance - Server Settings - PHP Info.
If the forum has a language other than English, then after clicking on the PHP Info button, a page with the HTTP ERROR 500 error appears.

Illori


User2

I'm just a user, I don't know where to look at the error history.

live627

there might be an entry for the php error log in your whm/cpanel. This is what you look for. Ask your host for guidance.

User2

I found the file with errors, but this file contains personal information, I can't put the whole text here.
What exactly should I see in this file?

Arantor

Censor the bits that are personal, then. Ultimately we need to know what the error is and where it is located.
Holder of controversial views, all of which my own.


User2

In general, the hoster told me to look at this file: root/logs/domain.com.error.log
Is this the file you asked for?

Arantor

I have no idea. Hosts put these things in different places. But it's the *content* that's important - does it have an error listed around the time you went into admin and looked at PHP Info?
Holder of controversial views, all of which my own.


User2

After clicking on the PHPInfo button, several lines appear in this file, in these four lines there is some information about the error:
mmap() failed: [12] Cannot allocate memory, referer:
PHP Fatal error:  Out of memory (allocated 6291456) (tried to allocate 98304 bytes) in
mmap() failed: [12] Cannot allocate memory, referer:
PHP Fatal error:  Out of memory (allocated 6291456) (tried to allocate 81920 bytes) in Unknown on line 0, referer:

Arantor

Out of memory after allocating 6MB?

You *need* to talk to your host. There should be no situation that a server is run so hard that it falls over out of memory when a page requests 6MB of memory. That almost certainly means your host is running far too many sites on the one server to meaningfully cope with any traffic - but given what else you've said about your hosting company, I'm not surprised.

A hosting company that charges you to even get the most basic support going? Think you've been conned.
Holder of controversial views, all of which my own.


User2

Arantar, if the forum has an English interface language, why is there no error? The same thing happens as in non-English.

Arantor

I don't know - I'm literally only going off the information you have provided, and that points to an error with your hosting environment being oversubscribed.

Show me a different error in the log that points to a fault in SMF and we'll talk. But 'out of memory' is not an SMF error.
Holder of controversial views, all of which my own.


Aleksi "Lex" Kilpinen

What could maybe help, a little, is actually naming the language that fails - Just saying non-English doesn't really narrow it down for us to check.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

User2

If the forum has English, does the PHP Info button generate fewer characters than when the forum has a different language?

Arantor

Depends on the language, but given that your server is literally out of memory because it's too full doing other things, the amount of difference in characters is literally irrelevant.
Holder of controversial views, all of which my own.


User2

Arantor, 512 MB of RAM is allocated on the hosting.
The language is Russian.

Arantor

It doesn't matter how much is allocated, because that's not the error you get if you go over that limit. This is "I used 6MB, the server won't let me have any more because there is no more free memory to give you"

Just because your allocation is 512MB doesn't mean you can always have 512MB!
Holder of controversial views, all of which my own.


Aleksi "Lex" Kilpinen

Yeah, just to try and make that easier to understand - You are not hitting a limit, you are hitting the bottom of the barrel. If you were simply hitting a memory limit, the error would say something like "Fatal Error: Allowed Memory Size of X Bytes Exhausted", but because you are still under the PHP limit and just ran out of actual memory to use the error is "Out of memory" instead.  Also, depending on how that 512MB is actually measured and what you are running on it, it's not actually very much.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Arantor

(6 million as per the error message is also a long long way short of the 524 million allowance you have.)
Holder of controversial views, all of which my own.


User2

Quote from: Arantor on July 30, 2024, 04:33:18 AMA hosting company that charges you to even get the most basic support going? Think you've been conned.
I have the cheapest tariff, which does not have technical specialists in technical support, but only users.
But there is a more expensive tariff on the hosting, technical specialists provide support there.

Advertisement: