 |
[Merged] Various PHP Errors - Reply here DO NOT make new threads
|
 |
#1
 04-10-2010
|
Member
|
|
Join Date: Dec 2006
Posts: 59
|
|
[Merged] Various PHP Errors - Reply here DO NOT make new threads
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:
Quote:
[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) |
|
 |
Errors on site.
|
 |
#2
 04-10-2010
|
Member
|
|
Join Date: Jul 2006
Location: South West UK
Posts: 47
|
|
Errors on site.
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 -
Quote:
[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 -
Quote:
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 |
|
 |
Serious Problems - PHP related?
|
 |
#3
 04-10-2010
|
Member
|
|
Join Date: Feb 2007
Location: Australia
Posts: 49
|
|
Serious Problems - PHP related?
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.
__________________
If you're finished reading my post, and eating that sandwich, Visit my site www.furgelnod.com.
|
 |
ulmb having problems
|
 |
#4
 04-10-2010
|
Member
|
|
Join Date: Feb 2010
Location: uk yeovil somerset
Posts: 68
|
|
ulmb having problems
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
Last edited by mixedbeats; 04-10-2010 at 11:28 AM..
|
#5
 04-10-2010
|
Administrator
|
|
Join Date: Jun 2006
Posts: 3,472
|
|
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.
__________________
Eric,
Admin
|
 |
Help
|
 |
#6
 04-10-2010
|
Junior Member
|
|
Join Date: Mar 2008
Posts: 10
|
|
Help
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
|
#7
 04-10-2010
|
Member
|
|
Join Date: Feb 2010
Location: uk yeovil somerset
Posts: 68
|
|
My script is upto date but still get the error.
|
 |
|
 |
#8
 04-10-2010
|
Member
|
|
Join Date: Feb 2007
Location: Australia
Posts: 49
|
|

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?
PHP Code:
/**
* 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;
}
__________________
If you're finished reading my post, and eating that sandwich, Visit my site www.furgelnod.com.
Last edited by tdj; 04-10-2010 at 04:47 PM.. Reason: additional information
|
#9
 04-10-2010
|
Administrator
|
|
Join Date: Jun 2006
Posts: 3,472
|
|
Quote:
Originally Posted by mixedbeats
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
__________________
Eric,
Admin
|
 |
Fatal Error
|
 |
#10
 04-10-2010
|
Member
|
|
Join Date: Jul 2006
Location: South West UK
Posts: 47
|
|
Fatal Error
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.
Code:
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??
Last edited by sheepy; 04-10-2010 at 07:00 PM..
|
Tags |
php errors serious
|
« Previous Thread | Next Thread »
Thread Tools
|
 Show Printable Version
 Email this Page
|
Display Modes
|
Linear Mode
 Switch to Hybrid Mode
 Switch to Threaded Mode
|
Posting Rules |
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
Forum Rules
|
|
|
All times are GMT. The time now is 04:44 PM.
|
|
|
|
|