Fatal error
« on: January 11, 2015, 01:57:05 PM »
sometime I get this Fatal error

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/u493472633/public_html/init.php on line 334

any reason why?
I ask the server hosting they say its the script that I use I did nothing to it how to fix this problem

*

Pharg

  • *****
  • 2,060
  • osDate Version: osDate Evo v1.0
Re: Fatal error
« Reply #1 on: January 11, 2015, 09:24:59 PM »
sometime I get this Fatal error

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/u493472633/public_html/init.php on line 334

any reason why?
I ask the server hosting they say its the script that I use I did nothing to it how to fix this problem

Hi vdherik,

This is not just a osDate issue, as it also happens in Drupal, Joomla, Wordpress and so on, it's a issues with the amount of memory set by the host in PHP!

It would be easier to know what version PHP your using and what version osDate your using to get a correct answer.

What has happened is, PHP has ran out on memory, this can be raised in either by .htaccess or php.ini depends on how the server you are on is setup.

In .htaccess add
Code: [Select]
php_value memory_limit 256M

You may get an internal server error 500, if you do, then you will need to remove it from the htaccess and try the php.ini way.

Create an new file called php.ini
Put the following in the file
Code: [Select]
memory_limit = 256M
If you don't know how to create on I have added one to use.

Upload to the php.ini to where you have your installed the osDate files.

WARNING!! DO NOT PUT THIS PHP.INI OVER THE HOSTS ONE, It must be put in your www.yourosdatename.com/ <--php.ini here-->

« Last Edit: January 11, 2015, 09:26:52 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDate v2.7 & osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Pharg

  • *****
  • 2,060
  • osDate Version: osDate Evo v1.0
Re: Fatal error
« Reply #2 on: January 12, 2015, 03:04:27 AM »
Hi vdherik,

I was successful at changing your memory from 128M to 256M memory by using the
.htaccess method.

I hope your dating site works way better for you now.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDate v2.7 & osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

Pharg

  • *****
  • 2,060
  • osDate Version: osDate Evo v1.0
Re: Fatal error
« Reply #3 on: July 08, 2015, 03:04:11 AM »
sometime I get this Fatal error

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/u493472633/public_html/init.php on line 334

any reason why?
I ask the server hosting they say its the script that I use I did nothing to it how to fix this problem

I have checked a few sites getting this error lately just to find it's a database connection error.
Double check your username and password etc
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDate v2.7 & osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35