Reply
Getting a Fatal error on my website
Old 02-12-2008, 07:54 AM Getting a Fatal error on my website
Skilled Talker

iTrader Rating: 0 (View)
Posts: 59
Hey
I have www.pg-evo.biz running on this cms template. When I go to it I see but I highlighted it and it said

Fatal error: Unable to read 502 bytes in /home/pgevo/public_html/incs/headers/MachineBlue.inc.php on line 0


Any help?
prodigy64 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-12-2008, 10:20 AM Re: Getting a Fatal error on my website
tripy's Avatar
Fetchez la vache!

iTrader Rating: 0 (View)
Posts: 2,055
Name: Thierry
Location: In the void
The script tries to read the content of a file (probably) in a variable, but all the available memory has been exhausted.

PHP limits the available memory to 8Mo per default.
http://www.php.net/manual/en/ini.cor...i.memory-limit
Change this value with ini_set [ http://www.php.net/manual/en/function.ini-set.php ] in the php file, or in a .htaccess (php_value memory_limit 64M)
http://www.php.net/manual/en/function.ini-set.php

Either modify your script to parse the file line by line, or increase the memory limit of your PHP installation
__________________
Listen to the ducky: "This is awesome!!!"


Last edited by tripy : 02-12-2008 at 10:22 AM.
tripy is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 10:40 AM Re: Getting a Fatal error on my website
Skilled Talker

iTrader Rating: 0 (View)
Posts: 59
So I go into the file machineblue.inc.php and add the lines
memory_limit integer?
I am confused on what I am supposed to add and where to add it.
prodigy64 is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 10:50 AM Re: Getting a Fatal error on my website
Skilled Talker

iTrader Rating: 0 (View)
Posts: 59
Ok I added that, Now it says this on my website.
Install Zend Core of something?
Any help?
prodigy64 is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 10:57 AM Re: Getting a Fatal error on my website
tripy's Avatar
Fetchez la vache!

iTrader Rating: 0 (View)
Posts: 2,055
Name: Thierry
Location: In the void
Please paste the exact message, I cannot say anything with what you provided.
Zend core is an extension to the PHP core engine, but is not be necessary to alter the max allowed memory.

And no, the ini_set setting should be put on the "main" file, the one including the machineblue.inc.php
Put this on the top, just after the <?php tag
PHP Code:
ini_set('memory_limit','64M'); 
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 11:02 AM Re: Getting a Fatal error on my website
Skilled Talker

iTrader Rating: 0 (View)
Posts: 59
I get it now. I have to install this Zend Optimizer.
It says to find the root where my web server is located, it is not on my computer how do I connect it to my web server. Also it says find the folder php.ini is in. Where is that? Help appreciated.
Thanks!


Edit it asks me what web server it should be installed on-
llS
Apache 1.x
Apache 2.x
Other webserver. If I do other webserver It goes to asks what I stated above

Last edited by prodigy64 : 02-12-2008 at 11:04 AM.
prodigy64 is offline
Reply With Quote
View Public Profile
 
Old 02-12-2008, 11:25 AM Re: Getting a Fatal error on my website
tripy's Avatar
Fetchez la vache!

iTrader Rating: 0 (View)
Posts: 2,055
Name: Thierry
Location: In the void
If you don't know that, it means that you should ask to your host.
You usually have no access to the php.ini, as it's changes affect all the server, and not just your account.

Contact your hosting provider, and ask them to install it, if they allow it.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Getting a Fatal error on my website
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.16634 seconds with 12 queries