|
|
| Author |
Message |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Thu Oct 23, 2003 2:23 pm Post subject: A lot of Notice lines in the output of PHP-Nuke |
|
|
|
Problem: You get a million Notice lines in your PHP-Nuke output:
| Code: |
Notice: No prefix specified in import_request_variables() - possible security hazard in c:program filesapache groupapachehtdocshtmlmainfile.php on line 23
Notice: Constant _youhave already defined in c:program filesapache groupapachehtdocshtmllanguagelang-english.php on line 158
Notice: Use of undefined constant admin - assumed 'admin' in c:program filesapache groupapachehtdocshtmladmin.php on line 16
Notice: Use of undefined constant admin - assumed 'admin' in c:program filesapache groupapachehtdocshtmlmainfile.php on line 88
Notice: Constant _yes already defined in c:program filesapache groupapachehtdocshtmladminlanguagelang-english.php on line 24
Notice: Constant _no already defined in c:program filesapache groupapachehtdocshtmladminlanguagelang-english.php on line 25
|
Solution: The error level for the reporting is too high. Set display_errors to display all errors, except for notices in your php.ini. Edit php.ini with a decent text editor as follows (the important line is the last one, which is the only uncommented one):
| Code: |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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
|
_________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
NYFisher Private

Joined: 12 Apr 2004 Posts: 2
|
Posted: Mon Apr 12, 2004 2:42 pm Post subject: |
|
|
|
I am new of course. I installed nuke 1.7 local. I am getting these same notices. I can only find the files php.ini-dist and php.ini-recomended
I copied and pasted the section in both of them anyway. I still get the notices. Any help would be greatly appreciated. |
|
| Back to top |
|
 |
Hopeless Sergeant

Joined: 06 Apr 2004 Posts: 26
|
Posted: Mon Apr 12, 2004 3:25 pm Post subject: |
|
|
|
| i had the same problem once i installed phpnuke locally i had errors all over the place what i did to fix them was either 1 - allowed php_db extension or 2 go to your preference Admin menu and change the theme , im using easyPHP with phpnuke 7.2 |
|
| Back to top |
|
 |
NYFisher Private

Joined: 12 Apr 2004 Posts: 2
|
Posted: Mon Apr 12, 2004 3:55 pm Post subject: |
|
|
|
| I fixed it. I had to change php.ini in the apache folder. All is well now. |
|
| Back to top |
|
 |
johncudd Private

Joined: 06 May 2004 Posts: 1
|
Posted: Thu May 06, 2004 11:00 am Post subject: Where is the php.ini file located? |
|
|
|
| I need to edit the php.ini file. I dont know where it is located though. could you help? |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Thu May 06, 2004 6:52 pm Post subject: |
|
|
|
In Linux, it is usually under /etc. In Windows, depending on the system it may be in c:\windows, c:\windows\system, c:\winnt or c:\winnt\system...
If you are talking about a PHP installation of an ISP, then forget it, you probably don't have the permissions to change the php.ini file - unless you have a "root server", in which case you wouldn't ask, I think.  _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
Yukio Private

Joined: 04 Sep 2004 Posts: 2
|
Posted: Sat Sep 04, 2004 10:52 am Post subject: |
|
|
|
hi there,
I'm very beginner. ok I follow the install process, everything goes well, until I reach the very first page of the site. Lot of notice lines.
I changed everything in PHP.ini as said before, but it does not change anything in the display.
any idea ? thx
(using Easy PHP 1.7, PHP Nuke 7.4, Windows XP) |
|
| Back to top |
|
 |
chris Dark Lord of the Sith

Joined: 10 May 2003 Posts: 6262 Location: Outer Space
|
Posted: Sat Sep 04, 2004 11:09 am Post subject: |
|
|
|
Assuming you did the change exactly as shown (i.e. you didn't introduce new errors, or you didn't mispell anything), then you probably forgot to restart the web server for the changes to take effect.  _________________ Regards
Chris Karakas
www.karakas-online.de |
|
| Back to top |
|
 |
Yukio Private

Joined: 04 Sep 2004 Posts: 2
|
Posted: Sat Sep 04, 2004 12:05 pm Post subject: |
|
|
|
DAMN ! that was it...
you know....I feel... ....stupid
thanks anyway  |
|
| Back to top |
|
 |
Malkhan Private

Joined: 31 Oct 2004 Posts: 2
|
Posted: Sun Oct 31, 2004 7:11 pm Post subject: |
|
|
|
Ok, maybe I'm just not getting this, but I sent all my files to my host webspace made the databases and what not, but when I went to run the site I got the notices all over the place.. I looked for php.ini everywhere on my host directory and on my computer... can't find it. Am I just screwed, or is there a way around this?
btw I'm using 7.3 and running on a windows server. |
|
| Back to top |
|
 |
|
|
 |
|
|