![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| 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 ----------------- |
| Sponsored Links |
| ||||
| 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. |
| The Following User Says Thank You to kbeeveer46 For This Useful Post: | ||
| The Following User Says Thank You to jitgos For This Useful Post: | ||
| |||
| 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); |
| The Following User Says Thank You to viulian For This Useful Post: | ||
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
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 |




Linear Mode

