Welcome to Geeklog, Anonymous Sunday, October 13 2024 @ 02:45 am EDT
Geeklog Forums
Spamx
Status: offline
Benta
Forum User
Regular Poster
Registered: 03/11/05
Posts: 80
Strange problem with spamx..
When I upgraded from 1.3.11 to 1.4.0sr1, I couldn't use the spam-x plugin. It gave SQL errors (which I for some reason can't find in the error log).
I assumed this had something to do with the upgrade, so I unistalled the plugin and tried to install it again.
The funy thing is that the installation script doesn't create the gl_spanx table. The code for it isn't in the install directory either (and wasn't for 1.3.11 either, I noticed when loking at the saved files)
There is no plugin/spamx/sql/ directory that this code can look for:
$_SQL = array ();
if (file_exists ($base_path . 'sql/install.php')) {
require_once ($base_path . 'sql/install.php');
}
foreach ($_SQL as $sql) {
$sql = str_replace ('#group#', $admin_group_id, $sql);
DB_query ($sql);
if (DB_error ()) {
COM_errorLog ('Error creating table', 1);
$uninstall_plugin ();
return false;
}
}
so... no table is created.
What am I missing here?
When I upgraded from 1.3.11 to 1.4.0sr1, I couldn't use the spam-x plugin. It gave SQL errors (which I for some reason can't find in the error log).
I assumed this had something to do with the upgrade, so I unistalled the plugin and tried to install it again.
The funy thing is that the installation script doesn't create the gl_spanx table. The code for it isn't in the install directory either (and wasn't for 1.3.11 either, I noticed when loking at the saved files)
There is no plugin/spamx/sql/ directory that this code can look for:
Text Formatted Code
// Create the plugin's table(s)$_SQL = array ();
if (file_exists ($base_path . 'sql/install.php')) {
require_once ($base_path . 'sql/install.php');
}
foreach ($_SQL as $sql) {
$sql = str_replace ('#group#', $admin_group_id, $sql);
DB_query ($sql);
if (DB_error ()) {
COM_errorLog ('Error creating table', 1);
$uninstall_plugin ();
return false;
}
}
so... no table is created.
What am I missing here?
6
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yeah, that's a bug (silently fixed in 1.4.0sr1, actually - but only in the complete tarball).
But how did you run into that problem in the first place? If you had Spam-X installed on 1.3.11, it would have updated it just fine.
bye, Dirk
But how did you run into that problem in the first place? If you had Spam-X installed on 1.3.11, it would have updated it just fine.
bye, Dirk
11
8
Quote
Status: offline
Benta
Forum User
Regular Poster
Registered: 03/11/05
Posts: 80
Quote by Dirk:
But how did you run into that problem in the first place? If you had Spam-X installed on 1.3.11, it would have updated it just fine.
But how did you run into that problem in the first place? If you had Spam-X installed on 1.3.11, it would have updated it just fine.
Not sure what I did actually. I was fuzzing with the ping back code to see what was in it, and suddenly saw that..
Other than that, the upgrade worked fine, only had problems where I changed the code myself in 1.3.11.
6
6
Quote
All times are EDT. The time is now 02:45 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content