Sometimes this hapens but it is not always clear why.
If you run the uninstall function in the settings of the plugin, and activate the plugin again, does it work?
You an check the database tables, there should be a wp_gwolle_gb_entries and a wp_gwolle_gb_log table.
In the past there was a report from a user that used hosting through Azure, which doesn’t support myIsam database collation. Could that be the case?
Thread Starter
cressr
(@cressr)
Tried that, no difference. I am not hosting this site myself, I’m not sure what server it is on, I’ll check it out and advise.
Thread Starter
cressr
(@cressr)
OK, the site is hosted on WEDOS, also I have just looked at the database and there are no tables! That’s obviously why it won’t work. Any ideas on what to do?
I haven’t heard of WEDOS. If they do not support MyIsam, they should have documentation on that. You could check that.
When you run the SQL query from gwolle-gb/admin/gb-upgrade.php, do you get an error? You can run that in something like PHPmyadmin. When you run it with Innodb instead of myisam, does it work?
I see they support myISAM, so that is not it.
They have utf8 as default, but I think the tables are made with that, and only upgraded to utf8mb4 afterwards.
Thread Starter
cressr
(@cressr)
Could I create the tables manually, if so what would the structure be?
Thread Starter
cressr
(@cressr)
OK, I have not done this before, so want to check understanding.
In the correct database
1) select SQL query
2) copy and paste the data
3) Does the wp_ go as the delimiter?
Then Go and the tables should be created?
Thread Starter
cressr
(@cressr)
I tried to run, ignored the delimiter, but got this error message:
Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
ERROR: Unknown Punctuation String @ 1
STR: <?
SQL: <?php
/*
** This file is used during activation or upgrading from a prior version.
**
** It uses the PHP function version_compare(). Usage:
** version_compare(OLD_VERSION_NUMBER,NEW_VERSION_NUMBER,'<‘)
** => TRUE, if the old version number is smaller than the new one.
*/
// No direct calls to this script
if ( strpos($_SERVER[‘PHP_SELF’], basename(__FILE__) )) {
die(‘No direct calls allowed!’);
SQL query:
<?php /* ** This file is used during activation or upgrading from a prior version. ** ** It uses the PHP function version_compare(). Usage: ** version_compare(OLD_VERSION_NUMBER,NEW_VERSION_NUMBER,'<‘) ** => TRUE, if the old version number is smaller than the new one. */ // No direct calls to this script if ( strpos($_SERVER[‘PHP_SELF’], basename(__FILE__) )) { die(‘No direct calls allowed!’);
MySQL said:
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘<?php
/*
** This file is used during activation or upgrading from a prior ver’ at line 1
CREATE TABLE
wp_gwolle_gb_entries
(
id int(10) NOT NULL auto_increment,
author_name text NOT NULL,
author_id int(5) NOT NULL default '0',
author_email text NOT NULL,
author_origin text NOT NULL,
author_website text NOT NULL,
author_ip text NOT NULL,
author_host text NOT NULL,
content longtext NOT NULL,
datetime bigint(8) UNSIGNED NOT NULL,
ischecked tinyint(1) NOT NULL,
checkedby int(5) NOT NULL,
istrash varchar(1) NOT NULL default '0',
isspam varchar(1) NOT NULL default '0',
admin_reply longtext NOT NULL,
admin_reply_uid int(5) NOT NULL default '0',
book_id int(5) NOT NULL default '1',
PRIMARY KEY (id)
) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
Just the SQL code 🙂
Try this (untested).
-
This reply was modified 7 years, 8 months ago by
Marcel Pol.
CREATE TABLE
wp_gwolle_gb_log
(
id int(8) NOT NULL auto_increment,
subject text NOT NULL,
entry_id int(5) NOT NULL,
author_id int(5) NOT NULL,
datetime bigint(8) UNSIGNED NOT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci;
And this for the logs.
Thread Starter
cressr
(@cressr)
OK I have it all working now. It appears that the privileges had not been set up properly by the host, found this after the SQL kept failing.
Thanks for all your help in this, much appreciate it as this is the best plugin for a Guestboook!
No problem, maybe I should have asked about that firsthand 🙂 I was thinking too difficult probably.
Good that it works now.