- Posts: 8
System health check errors
- Ian
- Topic Author
- Offline
- New Member
-
Less
More
13 years 8 months ago - 13 years 8 months ago #1
by Ian
System health check errors was created by Ian
Hi~
I have thoroughly read all of your documentation, but I have these two errors:
1. E_DEPRECATED errors are enabled in your PHP configuration
2. You need to add your site IP to Moodle XML-RPC trusted hosts list
1. I have tried adding this: error_reporting = E_ALL & ~E_DEPRECATED to the places in red, but without change.
Although I tried both places I am not sure which one needs to be replaced here's a look at my code before altering:
Error handling and logging ;
; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices
;
error_reporting = E_ALL & ~E_NOTICE
;
2. I did what was suggested "If it is the same server: 127.0.0.1/32", but I still get that. I have moodle on a subdomain of my site like this moodle.mysite.com. Would this interfere?
Thanks
Ian
I have thoroughly read all of your documentation, but I have these two errors:
1. E_DEPRECATED errors are enabled in your PHP configuration
2. You need to add your site IP to Moodle XML-RPC trusted hosts list
1. I have tried adding this: error_reporting = E_ALL & ~E_DEPRECATED to the places in red, but without change.
Although I tried both places I am not sure which one needs to be replaced here's a look at my code before altering:
Error handling and logging ;
; error_reporting is a bit-field. Or each number up to get desired error
; reporting level
; E_ALL - All errors and warnings
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices
;
error_reporting = E_ALL & ~E_NOTICE
;
2. I did what was suggested "If it is the same server: 127.0.0.1/32", but I still get that. I have moodle on a subdomain of my site like this moodle.mysite.com. Would this interfere?
Thanks
Ian
Last edit: 13 years 8 months ago by Ian.
Please Log in or Create an account to join the conversation.
- Ian
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
13 years 8 months ago #2
by Ian
Replied by Ian on topic System health check errors
I got a green on number 2. I was adding this 127.0.0.1/32 as it's on the same server as said in the directions. Then I got my ip address and that didn't work until I added "/32". Then I got a different error and now I can't even remember how I fixed it ha.
But I still have this one: E_DEPRECATED errors are enabled in your PHP configuration
I can see course now though.
But I still have this one: E_DEPRECATED errors are enabled in your PHP configuration
I can see course now though.
Please Log in or Create an account to join the conversation.
- Fernando Acedo
- Offline
- Elite Member
-
13 years 8 months ago #3
by Fernando Acedo
Replied by Fernando Acedo on topic System health check errors
Did you restarted the Apache server after edit php.ini ?
Please Log in or Create an account to join the conversation.
- Ian
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
13 years 8 months ago #4
by Ian
Replied by Ian on topic System health check errors
Thanks for your reply. No I don't know what that is or where it is?
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
13 years 8 months ago #5
by Chris
Replied by Chris on topic System health check errors
What version of PHP are you using? This message, e_depreciated, is a warning message and will not stop you from moving forward.
Please Log in or Create an account to join the conversation.
- Ian
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
13 years 8 months ago #6
by Ian
Replied by Ian on topic System health check errors
Not sure I think 5.2.3? 5.2..something
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
13 years 8 months ago #7
by Chris
Replied by Chris on topic System health check errors
Depending on hosting server setup you may have multiple php.ini settings. You may also have apache configuration settings that are required to be made.
I would ask your hosting provider where can you configure your sever to remove these notices and is there only one php.ini configuration file for your server or multiple.
In your php.ini file try
and configure
I would ask your hosting provider where can you configure your sever to remove these notices and is there only one php.ini configuration file for your server or multiple.
In your php.ini file try
Code:
error_reporting = E_ALL & ~E_DEPRECATED
and configure
Code:
display_errors = off
Please Log in or Create an account to join the conversation.
- Ian
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
13 years 8 months ago #8
by Ian
Replied by Ian on topic System health check errors
Thanks. I'll ask them. Which line do I put that text on? On both of the red lines above?
Please Log in or Create an account to join the conversation.