Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-20-2006, 10:43 PM
New Pligger
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
got pliggB9 working on PHP5.2.0 + mysql 5.0.2 on IIS5.1

*numerous* changes were required...mostly the warnings when uninitialized variables were being acecssed. I'm sure there's still more warnings to resolve.

Also, it seems the code is really half-written...it doesn't support setting the correct properties under certain circumstances. I would say this really isn't beta-level code, it's probably actually alpha.

Also, either the database creation script is screwy or the code is screwy for some tables. i.e. when you're in the process of creating a link the code tries to create an empty link without setting many of the columns in the link table...however almost all the columns are set to NOT NULL! so creation fails. I went the route by removing the NOT NULL requirement.

I'm sure someone will want this. It's the culmination of ~20hrs of work. Just let me know and I can stick it somewhere. Perhaps if more people are interested we can do a better job and get it back into the trunk.

- Alex
Reply With Quote
  #2 (permalink)  
Old 12-21-2006, 03:33 AM
Constant Pligger
 
Join Date: Aug 2006
Posts: 104
Thanks: 17
Thanked 4 Times in 2 Posts
Now this is the kind of dev that Im talking about. BRAVO! I almost wish it would work with older version of PHP (does it?).
__________________
www.mediacrumb.com
Reply With Quote
  #3 (permalink)  
Old 12-21-2006, 03:46 AM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,833
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
We've had a couple users in the past document the changes required for IIS, so you weren't alone.
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #4 (permalink)  
Old 12-21-2006, 05:49 PM
New Pligger
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Yankidank View Post
We've had a couple users in the past document the changes required for IIS, so you weren't alone.
actually there were *several* code-level changes beyond set-up.

Examples:

I had to manually re-enabled some commented out code in a template to enable hierarchal categories.

I fixed a bug in login.php to support an "all" topic that wasn't called "all"

I found I had to enable a module because code in a template wasn't checking to see if the private message module was installed or not.
Reply With Quote
  #5 (permalink)  
Old 12-21-2006, 05:51 PM
New Pligger
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by newuser View Post
Now this is the kind of dev that Im talking about. BRAVO! I almost wish it would work with older version of PHP (does it?).
probably, wanna try?
Reply With Quote
  #6 (permalink)  
Old 12-21-2006, 09:59 PM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
Thanks: 235
Thanked 345 Times in 206 Posts
Please send me a copy of the changes you've made, or just send the whole thing an I can compare it.

thanks!
__________________
- Ash
Reply With Quote
  #7 (permalink)  
Old 12-23-2006, 01:44 AM
Constant Pligger
 
Join Date: Aug 2006
Posts: 104
Thanks: 17
Thanked 4 Times in 2 Posts
Quote:
Originally Posted by thehesiod View Post
probably, wanna try?
Heck yeah. I'll install it on some of my test servers
__________________
www.mediacrumb.com
Reply With Quote
  #8 (permalink)  
Old 12-25-2006, 08:42 AM
New Pligger
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
I'm getting some of the problems reported by thehesiod when running on Window XP, MySQL 5.0.27, PHP 5.2.0, Apache 2.2.

My problems appear to be related to running mysql in strict mode. I think it would be correct to have the codebase work in this mode and doesn't look like it would be a lot of work. Some users are going to encounter these problems and not bother to try to find workarounds.

My specific problems trying to set up the system and add stories and comments:

install/installtables.php
the links tables has the fields link_field10 - link_field15 which are type text and have a default value. According to the MySQL documentation this is not permitted.
creation of the 'god' user fails as '' is being inserted into the last_reset_request field even though it is a not null timestamp.

libs/link.php
the insert statement in store_basic doesn't give values to the text fields that don't have defaults so the query fails. The affected fields are link_content, link_summary, link_title, link_field10 - link_field15
for the same insert statement the link_published_date is given a value of 0. This fails to save as the from_unixtime converts this to '1970-01-01 00:00:00' which is not allowed in a timestamp column according to the MySQL documentation.

References:
http://dev.mysql.com/doc/refman/4.1/en/blob.html
http://dev.mysql.com/doc/refman/5.0/...-overview.html
Reply With Quote
The Following 2 Users Say Thank You to posterboy For This Useful Post:
  #9 (permalink)  
Old 07-17-2007, 09:14 AM
New Pligger
 
Join Date: Jul 2007
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
that message is dates 12-25-2006, i have the 9.6 but still i get the same database, can u please tell me if fixing those columns would make the problem go away? (i cant submit any links) and what is the solution for the from_unixtime(0)

thanks a lot
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

BB 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
Strange MySQL happenings - Submit not working. newsfeeder General Help 0 05-08-2007 08:48 PM


Search Engine Friendly URLs by vBSEO 3.2.0