Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
A lot of Notice lines in the output of PHP-Nuke


Goto page 1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> PHP-Nuke Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Thu Oct 23, 2003 2:23 pm    Post subject: A lot of Notice lines in the output of PHP-Nuke
Reply with quote

Question 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


Arrow 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
View user's profile Send private message Send e-mail Visit poster's website
NYFisher
Private
Private


Joined: 12 Apr 2004
Posts: 2

PostPosted: Mon Apr 12, 2004 2:42 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Hopeless
Sergeant
Sergeant


Joined: 06 Apr 2004
Posts: 26

PostPosted: Mon Apr 12, 2004 3:25 pm    Post subject:
Reply with quote

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
View user's profile Send private message
NYFisher
Private
Private


Joined: 12 Apr 2004
Posts: 2

PostPosted: Mon Apr 12, 2004 3:55 pm    Post subject:
Reply with quote

I fixed it. I had to change php.ini in the apache folder. All is well now.
Back to top
View user's profile Send private message
johncudd
Private
Private


Joined: 06 May 2004
Posts: 1

PostPosted: Thu May 06, 2004 11:00 am    Post subject: Where is the php.ini file located?
Reply with quote

I need to edit the php.ini file. I dont know where it is located though. could you help?
Back to top
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Thu May 06, 2004 6:52 pm    Post subject:
Reply with quote

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. Wink
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Yukio
Private
Private


Joined: 04 Sep 2004
Posts: 2

PostPosted: Sat Sep 04, 2004 10:52 am    Post subject:
Reply with quote

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
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Sat Sep 04, 2004 11:09 am    Post subject:
Reply with quote

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. Wink
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Yukio
Private
Private


Joined: 04 Sep 2004
Posts: 2

PostPosted: Sat Sep 04, 2004 12:05 pm    Post subject:
Reply with quote

DAMN ! that was it...

you know....I feel... Embarassed ....stupid

thanks anyway Wink
Back to top
View user's profile Send private message
Malkhan
Private
Private


Joined: 31 Oct 2004
Posts: 2

PostPosted: Sun Oct 31, 2004 7:11 pm    Post subject:
Reply with quote

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? Confused

btw I'm using 7.3 and running on a windows server.
Back to top
View user's profile Send private message
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> PHP-Nuke Forum
Page 1 of 3
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group