PDA
View Full Version : [Merged] Various PHP Errors - Reply here DO NOT make new threads
newway
04-10-2010, 07:35 AM
Been seeing, and experiencing random script errors for the last couple hours. I don't want to paste all the errors, but I hope the following helps to solve problems.
For example, when I view a thread here, I get:
Deprecated: Assigning the return value of new by reference is deprecated in /usr/home/ulmb/unlimitedmb.com/forum/showthread.php on line (5 different line numbers)
When I view my domain theotherforums.com, I get the following at the top of the index, and other random errors when loading:
[phpBB Debug] PHP Notice: in file /index.php on line 86: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead
[phpBB Debug] PHP Notice: in file /index.php on line 86: getdate() [function.getdate]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4183: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4185: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4186: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
sheepy
04-10-2010, 10:56 AM
Woke up this morning, visited my site an im getting a shed load of errors.
I have not edited anything on my site or made any changes to any settings recently.
Also when i logged into ulmb forums i had some errors about DST settings.
The errors im recieving are -
[phpBB Debug] PHP Notice: in file /includes/functions_messenger.php on line 390: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead
Warning: Cannot modify header information - headers already sent by (output started at /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/functions.php:3498) in /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/functions.php on line 4204
Warning: Cannot modify header information - headers already sent by (output started at /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/functions.php:3498) in /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/functions.php on line 4206
Warning: Cannot modify header information - headers already sent by (output started at /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/functions.php:3498) in /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/functions.php on line 4207
Warning: Cannot modify header information - headers already sent by (output started at /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/functions.php:3498) in /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/functions.php on line 4208
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 491520 bytes) in /hosted/subs/ulmb.com/t/h/theory/public_html/forums/cache/tpl_prosilver-se_overall_header.html.php on line 184
You can see here - http://theory.ulmb.com
**EDIT**
After i posted this these error appeared at the top of the page -
Deprecated: Assigning the return value of new by reference is deprecated in /usr/home/ulmb/unlimitedmb.com/forum/showthread.php on line 639
Deprecated: Assigning the return value of new by reference is deprecated in /usr/home/ulmb/unlimitedmb.com/forum/showthread.php on line 1041
Deprecated: Assigning the return value of new by reference is deprecated in /usr/home/ulmb/unlimitedmb.com/forum/showthread.php on line 1046
Deprecated: Assigning the return value of new by reference is deprecated in /usr/home/ulmb/unlimitedmb.com/forum/showthread.php on line 1518
Deprecated: Assigning the return value of new by reference is deprecated in /usr/home/ulmb/unlimitedmb.com/forum/showthread.php on line 1523
Hi,
I am having errors that have made it so my site is no longer working. These all seem PHP related. Some my be due to specific plugins I use however I cannot access the admin panel of site (which uses Joomla) to remove them, due to errors like those on the front page. I pasted the errors which are displaying at muntedmedia.com below.
Deprecated: Function ereg() is deprecated in /hosted/domains/m/u/muntedmedia.com/public_html/plugins/system/iewarning.php on line 22
Deprecated: Function ereg() is deprecated in /hosted/domains/m/u/muntedmedia.com/public_html/plugins/system/iewarning.php on line 30
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/domains/m/u/muntedmedia.com/public_html/plugins/system/nonumberelements.php on line 55
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 7680 bytes) in /hosted/domains/m/u/muntedmedia.com/public_html/libraries/joomla/filter/filteroutput.php on line 106
Similar errors are being returned when trying to view topics on your forums. This seriously needs to be addressed asap obviously something is wrong, or at least changed, on your end.
mixedbeats
04-10-2010, 11:25 AM
i guess your having problems right ?
i get an error message when ever i visit a page within my site but if i refresh its all fixed
can you verify its you before i start hunting for problems i will post the error message here as soon as i get it again
Fatal error: Unknown: Failed opening required '/hosted/domains/z/i/zizrat.com/public_html/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
as i said a simple page refresh and its fixed
UnlimitedMB
04-10-2010, 02:35 PM
PHP on the server has been upgraded to 5.3.2.
I have edited the server config to hide the depreciated errors and fixed the timezone problem.
You should upgrade your scripts to the latest versions.
PHP 5.3 has been out for months now, there should be updates available for all scripts to work with it.
fifalife
04-10-2010, 03:15 PM
Hi
Can someone tell me why i keep coming up with this message.
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 7680 bytes) in /hosted/subs/ulmb.com/f/i/fifalife/public_html/libraries/joomla/utilities/simplexml.php(335) : eval()'d code on line 1
my site worked fine last night :(
mixedbeats
04-10-2010, 03:52 PM
My script is upto date but still get the error.
Fatal error: Allowed memory size of 16777216 bytes exhausted
(tried to allocate 7680 bytes) in /hosted/domains/m/u/muntedmedia.com/public_html/libraries/joomla/filter/filteroutput.php
on line 106
I am still this error, as noted previously, and the script I use is up to date (Joomla v. 1.5.15). Also I checked if the particular file which the error refers to is updated in the development releases, it is not. EDIT: I just tried the admin back end of Joomla and am experiencing the same " Allowed memory size of 16777216 bytes exhausted " error on different scripts.
I have worked out the offending functions, which I list below, however removing them is not an option as they are part of the main framework for Joomla and are referred to by many other scripts. Is it possible this error can be overcome on your end or am I going to need to seek answers from the developers of Joomla?
/**
* Replaces & with & for xhtml compliance
*
* There must be a better way???
*
*
* 1.5
*/
function ampReplace( $text )
{
$text = str_replace( '&&', '*--*', $text );
$text = str_replace( '', '*-*', $text );
$text = str_replace( '&', '&', $text );
$text = preg_replace( '|&(?![\w]+;)|', '&', $text );
$text = str_replace( '*-*', '', $text );
$text = str_replace( '*--*', '&&', $text );
return $text;
}
/**
* Callback method for replacing & with & in a string
*
*
* string $m String to process
* string Replaced string
* 1.5
*/
function _ampReplaceCallback( $m )
{
$rx = '&(?!amp;)';
return preg_replace( '#'.$rx.'#', '&', $m[0] );
}
/**
* Cleans text of all formating and scripting code
*/
function cleanText ( &$text )
{
$text = preg_replace( "''si", '', $text );
$text = preg_replace( '/
]*>([^<]+)<\/a>/is', '\2 (\1)', $text );
$text = preg_replace( '//', '', $text );
$text = preg_replace( '/{.+?}/', '', $text );
$text = preg_replace( '/ /', ' ', $text );
$text = preg_replace( '/&/', ' ', $text );
$text = preg_replace( '/"/', ' ', $text );
$text = strip_tags( $text );
$text = htmlspecialchars( $text );
return $text;
}
UnlimitedMB
04-10-2010, 06:06 PM
My script is upto date but still get the error.
Your site says " Fatal error: Unknown: Failed opening required '/hosted/domains/zizrat.com/public_html/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0 "
You are using the wrong path.
Your file is at /hosted/domains/z/i/zizrat.com/public_html/index.php
NOT /hosted/domains/zizrat.com/public_html/index.php
sheepy
04-10-2010, 06:11 PM
After Eric did the upgrade on the on the server all the error messages disappeared.
I'm now trying to update my phpbb3 forums to the latest version.
3.0.6 to 3.0.7-PL1
I get half way through the update an get a memory error message.
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 32 bytes) in /hosted/subs/ulmb.com/t/h/theory/public_html/forums/includes/diff/engine.php on line 151
Any ideas why??
UnlimitedMB
04-10-2010, 07:13 PM
Memory errors should be fixed now.
sheepy
04-10-2010, 07:17 PM
Thanks, problem solved :)
mixedbeats
04-10-2010, 08:04 PM
Your site says " Fatal error: Unknown: Failed opening required '/hosted/domains/zizrat.com/public_html/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0 "
You are using the wrong path.
Your file is at /hosted/domains/z/i/zizrat.com/public_html/index.php
NOT /hosted/domains/zizrat.com/public_html/index.php
that was my fault s call it a typo
here is what i'm getting and still getting
Fatal error: Unknown: Failed opening required '/hosted/domains/z/i/zizrat.com/public_html/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
sheepy
04-10-2010, 09:46 PM
yeh having the same issue as well.
Every now an again getting an error message.
Fatal error: Unknown: Failed opening required '/hosted/subs/ulmb.com/t/h/theory/public_html/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
Refresh the page an gone
newway
04-10-2010, 09:52 PM
I also get similar errors, and pages timing out on me, whenever viewing anything I have hosted.
UnlimitedMB
04-10-2010, 11:50 PM
I also get similar errors, and pages timing out on me, whenever viewing anything I have hosted.
Please post URLs.
Everything looks fine that I can see, if there is a problem I need to see it to fix it.
destrugter
04-11-2010, 01:52 AM
Hey, glad you guys are updating the server. I am getting this error
Fatal error: Unknown: Failed opening required '/hosted/domains/r/u/runenerds.com/public_html/guides/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
It doesn't happen every time, it's only every couple of visits it seems like. The url I'm trying to access is: http://runenerds.com/guides
EDIT:
I can not get it to repeat itself, but it seems it may have been a problem with the url being edited and trying to refresh that url. I have fixed that issue, and it doesn't seem to be repeating.
Thank you.
UnlimitedMB
04-11-2010, 02:44 AM
I seen it once but doesnt appear again.
Seems to be some people reported the same in php bugs but no solution.
I removed /usr/local/share/pear which doesnt exist from the path, hopefully that fixes it.
Let me know if you see it again after this post.
mixedbeats, what code did you have that was triggering the error constantly?
it only appearing rarely makes it difficult to fix.
mixedbeats
04-11-2010, 07:12 PM
Thanks the problem seems to be solved now :)
I thought I ought to bring this up. I have sporadically around my site experienced this error," Fatal error: Unknown: Failed opening required '/hosted/domains/m/u/muntedmedia.com/public_html/index.php' (include_path='.') in Unknown on line 0 "
When the error occurs is unpredictable, though I have had it repeat several times. Simply refreshing the page seems toresolve it, that said random errors are less than desirable. My site url is www.muntedmedia.com
(http://www.muntedmedia.com)Any thoughts as to what could be going on?
Tyler
04-12-2010, 06:56 AM
I loaded your home page at least 30-40 times TDJ and was unable to duplicate the issue.
mixedbeats
04-14-2010, 10:23 AM
My error has come back
Fatal error: Unknown: Failed opening required '/hosted/domains/z/i/zizrat.com/public_html/index.php' (include_path='.:/usr/local/share/pear') in Unknown on line 0
So i got to thinking everyones else's problems had been fixed but mine so it has to be my end so i dumped my database removed my site and did a fresh install of smf.
All was good then i added my portal and it was back so the portal was given me my error so i have changed my portal and all is good and fixed.
Notified the portal creator of my problem and he has now released a updated version due to a bug. so im solved too.
UnlimitedMB
04-14-2010, 10:26 AM
Really you saw it again in the last 24 hours?
I didn't update this thread but I found the exact cause yesterday and fixed it, and confirmed it was not happening, so it really shouldn't be still happening.
What script is causing the error that you removed?
Edit: Somethings not right, did you copy and paste that error.
/usr/local/share/pear hasnt even been in the path for several days now, this looks like an old error thats already been fixed.
mixedbeats
04-14-2010, 11:03 AM
My error was from 2 or 3 days ago i guess you fixed it at this end while i was reinstalling my end either way my portal was giving me errors but is now fixed.
I'm using smf 20 RC3 there new release and any mods used are all beta to RC3
And yes that is a copy n paste code it was being dispayed at the top of my site page on unistalling my portal the error went away.
All fixed now and is good.
EDIT I shoud point out i only finished installing my site yesterday afternoon uk time.
john345
04-16-2010, 09:52 PM
Same boat:
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-settings.php on line 472
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-settings.php on line 487
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-settings.php on line 494
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-settings.php on line 530
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-includes/cache.php on line 103
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-includes/query.php on line 21
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-includes/theme.php on line 623
Deprecated: Assigning the return value of new by reference is deprecated in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-content/plugins/MoreLink/MoreLink.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-settings.php:472) in /hosted/subs/ulmb.com/p/i/pixma/public_html/core/wp-content/plugins/wp-postratings/wp-postratings.php on line 691
Everything was working fine a few days ago when I last checked it.
UnlimitedMB
04-17-2010, 12:08 AM
I already turned off the deprecated warnings in php configuration.
Your script is overriding the default error reporting and showing them anyway.
Are you using the latest version of wordpress?
john345
04-17-2010, 10:29 AM
Just upgraded and everything is working ok now.
fitzbean
04-17-2010, 09:42 PM
All of sudden today, I'm getting this error:
[00] Error: you have to set magic_quotes_gpc to On in php
http://dfoinfo.ulmb.com/locdb/login.php
Pages don't work at all as a result.
UnlimitedMB
04-21-2010, 02:55 PM
Magic quotes has been removed by PHP developers.
Its no longer part of php.
This has been announced years ago that it would be removed.
You should not have been using it.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.