SQL Problems after update to 2.5
Moderator: Thorsten
-
- Posts: 15
- Joined: Wed May 27, 2009 5:12 pm
- Location: Maidston, Kent, UK
- Contact:
SQL Problems after update to 2.5
Hi
We had an installation of 2.0.15 and have just updated it to version 2.5. Most of it has gone ok but when we click on a category we get the following error messge: phpMyFAQ warning [2]: mysql_num_rows(): supplied argument is not a valid MySQL result resource in Mysql.php on line 160
This then loads the rest of the page but the category listing is blank. I have looked at the MySQL tables and the data is still there. For an example of the problem please see http://sitewizard-support.co.uk/category/1/email.html.
What would be causing this and how can we fix it?
Thanks
Robert
We had an installation of 2.0.15 and have just updated it to version 2.5. Most of it has gone ok but when we click on a category we get the following error messge: phpMyFAQ warning [2]: mysql_num_rows(): supplied argument is not a valid MySQL result resource in Mysql.php on line 160
This then loads the rest of the page but the category listing is blank. I have looked at the MySQL tables and the data is still there. For an example of the problem please see http://sitewizard-support.co.uk/category/1/email.html.
What would be causing this and how can we fix it?
Thanks
Robert
Re: SQL Problems after update to 2.5
Hi,
did you run the update script?
bye
Thorsten
did you run the update script?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Wed May 27, 2009 5:12 pm
- Location: Maidston, Kent, UK
- Contact:
Re: SQL Problems after update to 2.5
Hi
Yes, I did. I followed the instructions here: http://www.phpmyfaq.de/documentation.2.5.en.php#3b.
Thanks
Robert
Yes, I did. I followed the instructions here: http://www.phpmyfaq.de/documentation.2.5.en.php#3b.
Thanks
Robert
Re: SQL Problems after update to 2.5
Hi,
strange issue. Could you please try to turn on the DEBUG mode in inc/Init.php? Is it possible to get a SQL dump?
bye
Thorsten
strange issue. Could you please try to turn on the DEBUG mode in inc/Init.php? Is it possible to get a SQL dump?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Wed May 27, 2009 5:12 pm
- Location: Maidston, Kent, UK
- Contact:
Re: SQL Problems after update to 2.5
Hi
I have turned on the debug and Please find the SQL dump here: http://www.sitewizard-support.co.uk/web229-phpmyfaq.sql.
Thanks
Robert
I have turned on the debug and Please find the SQL dump here: http://www.sitewizard-support.co.uk/web229-phpmyfaq.sql.
Thanks
Robert
Re: SQL Problems after update to 2.5
Hi,
thanks, I think I've found the issue. I'll work on a fix.
bye
Thorsten
thanks, I think I've found the issue. I'll work on a fix.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Wed May 27, 2009 5:12 pm
- Location: Maidston, Kent, UK
- Contact:
Re: SQL Problems after update to 2.5
Hi
Thank you very much.
Thanks
Robert
Thank you very much.
Thanks
Robert
Re: SQL Problems after update to 2.5
Hi Robert,
please download the stable snapshot of phpMyFAQ 2.5.x at our download page. Your bug should be fixed now.
bye
Thorsten
please download the stable snapshot of phpMyFAQ 2.5.x at our download page. Your bug should be fixed now.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Wed May 27, 2009 5:12 pm
- Location: Maidston, Kent, UK
- Contact:
Re: SQL Problems after update to 2.5
Hi Thorsten,
Thank you so much. It is all fixed now. Can't tell you how happy that makes me. Thank you.
One other thing, is the admin page meant to look like the attached screen shot?
Thanks
Robert
Thank you so much. It is all fixed now. Can't tell you how happy that makes me. Thank you.
One other thing, is the admin page meant to look like the attached screen shot?
Thanks
Robert
You do not have the required permissions to view the files attached to this post.
Re: SQL Problems after update to 2.5
Hi,
please use the admin.css files from the 2.5 template folder. We changed the layout for the backend for better usability.
bye
Thorsten
please use the admin.css files from the 2.5 template folder. We changed the layout for the backend for better usability.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
-
- Posts: 15
- Joined: Wed May 27, 2009 5:12 pm
- Location: Maidston, Kent, UK
- Contact:
Re: SQL Problems after update to 2.5
Hi Thorsten,
Thank you very much for all the help. Keep up the great work.
Thanks
Robert
Thank you very much for all the help. Keep up the great work.
Thanks
Robert
Re: SQL Problems after update to 2.5
I had the same problem when i upgraded to 2.5
I tried it with 2.5.x and i had the following error in the upgrader:
DB error: Table 'faqsearches' already exists
Query:
CREATE TABLE faqsearches (
id INTEGER NOT NULL ,
lang VARCHAR(5) NOT NULL ,
searchterm VARCHAR(255) NOT NULL ,
searchdate TIMESTAMP,
PRIMARY KEY (id, lang))
Any idea?
Thanks!
I tried it with 2.5.x and i had the following error in the upgrader:
DB error: Table 'faqsearches' already exists
Query:
CREATE TABLE faqsearches (
id INTEGER NOT NULL ,
lang VARCHAR(5) NOT NULL ,
searchterm VARCHAR(255) NOT NULL ,
searchdate TIMESTAMP,
PRIMARY KEY (id, lang))
Any idea?
Thanks!
Re: SQL Problems after update to 2.5
Hi,
did you select the correct version in the update script?
bye
Thorsten
did you select the correct version in the update script?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: SQL Problems after update to 2.5
Yes.
When i had the problem updating 2.0.15 to 2.5, i installed again 2.0.15 with a backup (archives and database)
After that i tried to upgrade 2.0.15 with 2.5.x with this option in the upgrader:
Please select your current version:
Phpmyfaq 2.0.2 and later
Thank you for the quick answer
When i had the problem updating 2.0.15 to 2.5, i installed again 2.0.15 with a backup (archives and database)
After that i tried to upgrade 2.0.15 with 2.5.x with this option in the upgrader:
Please select your current version:
Phpmyfaq 2.0.2 and later
Thank you for the quick answer

Re: SQL Problems after update to 2.5
Hi,
is it working now?
bye
Thorsten
is it working now?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist