Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks


Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Wednesday, June 19 2013 @ 04:17 PM EDT


 Forum Index > Support > Installation Support New Topic Post Reply
 1.7.1 to 1.8.1 many errors.
   
1000ideen
 04/09/12 05:35PM (Read 1297 times)  
+++++
Full Member

Status: offline


Registered: 08/04/03
Posts: 1273
After updating from 1.7.1 to 1.8.1 I encounter many errors.

Clicking polls results in this:

256 - An SQL error has occurred. Please see error.log for details. /system/databases/mysql.class.php line 260

Mo 09 Apr 2012 23:24:26 CEST - 1054: Unknown column 'created' in 'field list'. SQL in question: SELECT *,UNIX_TIMESTAMP(created) AS unixdate FROM gl_polltopics WHERE 1=1
Mo 09 Apr 2012 23:24:49 CEST - 1054: Unknown column 'created' in 'field list'. SQL in question: SELECT *,UNIX_TIMESTAMP(created) AS unixdate FROM gl_polltopics WHERE 1=1


Clicking a topic results in this:

Mo 09 Apr 2012 23:33:09 CEST - 1052: Column 'date' in field list is ambiguous. SQL in question: SELECT DISTINCT COUNT(*) AS dups, type, title, sid, max(date) AS lastdate FROM gl_comments, gl_polltopics pt WHERE type = 'polls' AND (pt.pid = sid) AND (pt.commentcode >= 0) AND (date >= (DATE_SUB(NOW(), INTERVAL 1209600 SECOND))) GROUP BY sid,type, title, sid ORDER BY 5 DESC LIMIT 15

It is php 5.3

 
Profile Email Website
 Quote
Laugh
 04/09/12 08:30PM  
AAAAA
Admin

Status: offline


Registered: 09/27/05
Posts: 891
Sounds like the polls plugin didn't update. It has 2 date fields now, created and modified (before it only had one called date). The staticpage plugin also has 2 date fields as well. Does it work okay?

Your clicking a topic error is also because the polls table wasn't updated, MYSQL is confused because it found a date column in polls as well as the comments table.

 
Profile Email Website
 Quote
1000ideen
 04/10/12 03:10AM  
+++++
Full Member

Status: offline


Registered: 08/04/03
Posts: 1273
I have to check this in detail later. What would be the sql command to create the missing fields?

 
Profile Email Website
 Quote
Laugh
 04/10/12 09:29AM  
AAAAA
Admin

Status: offline


Registered: 09/27/05
Posts: 891
The missing columns is not much of a problem but during those upgrades a bunch of changes happened for the Polls Config as well which I am sure you are missing.

We did find a bug in the upgrade script which is fixed in Geeklog 2.0.0 but I am pretty sure it is not the same problem you are having since it dealt with just the configuration.

The easiest way to potential fix this problem is for you to give a copy of your 1.7.1 database and let me run the upgrade at my end to see what is happening. Can you do that?

Tom

 
Profile Email Website
 Quote
1000ideen
 04/14/12 12:49PM  
+++++
Full Member

Status: offline


Registered: 08/04/03
Posts: 1273
O.k., the problem was solved now but I found another error.

Badbehavior plugin does not show up in the admin menu left. Though if you go through this page
http://www.geeklog.net/admin/plugins/bad_behavior2/index.php you will find it again on the left side.

 
Profile Email Website
 Quote
Laugh
 04/14/12 04:02PM  
AAAAA
Admin

Status: offline


Registered: 09/27/05
Posts: 891
You have to add a line to lib-common.php for Bad Behaviour to work. Look at the install instructions for BB and it will tell you what and where.

Tom

 
Profile Email Website
 Quote
1000ideen
 04/14/12 04:55PM  
+++++
Full Member

Status: offline


Registered: 08/04/03
Posts: 1273
It works, it is just not showing up in the left menu when being on the home page. It does show up when in admin mode like this:
http://www.geeklog.net/admin/plugins/bad_behavior2/index.php

 
Profile Email Website
 Quote
Dirk
 04/14/12 05:14PM  
AAAAA
Admin

Status: offline


Registered: 01/12/02
Posts: 13035
It really does sound like you're missing the line from lib-common.php, like Tom said.

The plugin's index.php does an explicit include of the bad-behavior-geeklog.php. Only when that file is included does the function bb2_insert_head() exist - and that's one of the conditions that's being checked for whether or not the menu entry should show up.

bye, Dirk

 
Profile Email Website
 Quote
1000ideen
 04/14/12 05:22PM  
+++++
Full Member

Status: offline


Registered: 08/04/03
Posts: 1273
Ah, true! I had not ftped the altered file.

 
Profile Email Website
 Quote
Content generated in: 0.87 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content