Go Back   Pligg Forum > Pligg Help > Installation and Upgrade Help
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2007, 12:59 PM
betagirl betagirl is offline
Pligg Donor
 
Join Date: Mar 2007
Posts: 85
Downloads: 13
Uploads: 0
Thanks: 16
Thanked 14 Times in 10 Posts
installation errors when PHP warnings enabled

Hello -

I am working with a developer to customize a Pligg installation for us. He is not familiar with Pligg and prior to giving a quote, has done a test install of his own. After following the installation instructions to the letter (he has the proper permissions set on the necessary dirs; he is running PHP 5.0.2) he gets copious errors and warnings. He wonders if this signals some loose coding of Pligg, or if there is something else at play here. I do not know what to tell him and haven't the time to investigate (I successfully did a test install of my own, albeit without warnings enabled). He is skeptical of using the platform given the errors he is seeing.

So, if someone could review the info below, and if you can take a look at the screenshots he's sent in the attached zip file, I would appreciate it. I need this installed on a large site, with a large and active community and would prefer to not have to go back to the drawing board and find another solution or a custom solution. Pligg looks great and serves 90% of our needs. Any help is appreciated.

Thanks so much!

------------ info from developer ---------
I attempted a fresh install, and followed the directions to the letter
(along with setting the appropriate permissions for each folder /
file). After proceeding to the login page, I already get one warning
(see "Picture 2.png"):
Notice: Undefined variable: errors in
/Library/WebServer/Documents/pligg/install/install1.php on line 25

Then after installing the database has completed I'm presented with the
following warnings (see "Picture 3.png):
Notice: Undefined variable: errors in
/Library/WebServer/Documents/pligg/install/install2.php on line 38

Notice: Undefined variable: output in
/Library/WebServer/Documents/pligg/install/install2.php on line 39

Along with this message:
There were no errors, continue onto the next step...

That message is pretty funny: of course there were no errors... the
"errors" index wasn't even set :)
Clicking the next button brings up two more warnings (see "Picture
4.png"):

Notice: Undefined variable: errors in
/Library/WebServer/Documents/pligg/install/install3.php on line 13
Notice: Undefined variable: errors in
/Library/WebServer/Documents/pligg/install/install3.php on line 51

After proceeding to the login area, I'm presented with 5 notices (see
"Picture 5.png" and "Picture 6.png"):
<br /><b>Notice</b>: Undefined index: login_username in
<b>/Library/WebServer/Documents/pligg/class.template.php(674) :
eval()'d code</b> on line <b>15</b><br />
<br /><b>Notice</b>: Undefined index: login_username in
<b>/Library/WebServer/Documents/pligg/class.template.php(674) :
eval()'d code</b> on line <b>37</b><br />
Notice: Undefined index: request_category in
/Library/WebServer/Documents/pligg/class.template.php(674) : eval()'d
code on line 37
Notice: Undefined index: request_category in
/Library/WebServer/Documents/pligg/class.template.php(674) : eval()'d
code on line 37
Notice: Undefined index: enable_tags in
/Library/WebServer/Documents/pligg/class.template.php(674) : eval()'d
code on line 37

After logging in, I'm presented with 10 more warnings.

I agree that it seems a bit odd that the programming would be this bad.
After briefly searching through the pligg forums it seems that others
have faced the same situations. Quite a number of people who reply to
the problem claim they don't have the problems themselves, and state
that they're using XAMMP. This isn't that surprising to hear as XAMMP
doesn't have warnings enabled by default (at least in my experience
with it).

The warnings certainly aren't crippling... the platform will still
work, however it's pretty horrible coding. That being said, there may
be something I'm missing?
I have PHP 5.0.2 running and followed exactly what the instructions
say. Any ideas?
--------- end info from developer -----------------
Attached Files
File Type: zip PliggErrors.zip (401.3 KB, 11 views - Who Downloaded?)
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-21-2007, 01:57 PM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,579
Downloads: 62
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
When you get those errors it's because error reporting is on too high. If you notice, they aren't errors, but notices. Since you did not see the notices your error reporting is on a different level than the developers. We are trying to fix as many of them as we can over time but the easiest thing to do is configure the error reporting.
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #3 (permalink)  
Old 03-22-2007, 12:35 AM
jitgos's Avatar
jitgos jitgos is offline
Constant Pligger
 
Join Date: Apr 2006
Location: Indiana (soon New Hampshire)
Posts: 341
Downloads: 4
Uploads: 0
Thanks: 94
Thanked 49 Times in 38 Posts
KB is right. I was just working on these the other day and fixed a couple very small ones. Most are just notices and nothing to worry about, but it would be good to be 100% "strict" compliant so we'll continue to chip away at them.

Just change the reporting level in php.ini to get rid if the notices for now.
Reply With Quote
The Following User Says Thank You to jitgos For This Useful Post:
  #4 (permalink)  
Old 03-22-2007, 03:32 PM
viulian viulian is offline
New Pligger
 
Join Date: Mar 2007
Posts: 20
Downloads: 4
Uploads: 0
Thanks: 2
Thanked 9 Times in 7 Posts
I can't change my php.ini so I had to manually patch two files:

Smarty.class.php
libs/utils.php

I have added these two lines at the beginning, after the comments:

Code:
# disable notices
error_reporting(E_ERROR | E_WARNING | E_PARSE);
I have also noticed that if you do not add them as soon as possible, html pages containing the warnings need to be refreshed, otherwise they are served from a cache and still containing the Notify messages even if the php code is updated.
Reply With Quote
The Following User Says Thank You to viulian For This Useful Post:
  #5 (permalink)  
Old 10-16-2007, 10:22 AM
phpbbx phpbbx is offline
New Pligger
 
Join Date: Oct 2007
Posts: 2
Downloads: 6
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
i have exactly the same problem !!

Last edited by phpbbx : 10-16-2007 at 10:28 AM.
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
cann't vote in pligg (buliding 802) haxhax Bug Report 27 03-10-2007 05:53 AM
dreamhost and validation image problem Xanatos Installation and Upgrade Help 17 01-17-2007 12:14 PM
Please help me with installation errors sjaakstaal Installation and Upgrade Help 2 10-29-2006 11:33 AM
errors after installation says successful install storyspinner Installation and Upgrade Help 3 10-12-2006 08:55 PM
/var/log/httpd/error_log messages gr8rcake Bug Report 3 01-28-2006 08:28 PM


LinkBacks Enabled by vBSEO 3.0.0