SourceForge logo
SourceForge logo
Menu

phpwiki-talk

From: Ale F. <sk...@gm...> - 2008年09月18日 12:05:51
Hi,
I have a problem that an old phpwiki site I used to run has got spammed 
into a spam sandwich that would have scooby doo sweating. It's 2 gb or 
so in size.
Here's the error I get on most pages:
----------------
Fatal Error:
lib/WikiDB/backend/PearDB.php:59: Error: Can't connect to database: 
wikidb_backend_peardb_sqlite: fatal database error
 * DB Error: invalid
 * ( ** ** sqlite:////var/lib/phpwiki/phpwiki_pagedb.db)
 *
/usr/share/php/DB/sqlite.php:134: Warning: is_file(): Stat failed for 
/var/lib/phpwiki/phpwiki_pagedb.db (errno=75 - Value too large for 
defined data type)
lib/WikiDB/backend/PearDB.php:59: Error: Can't connect to database: 
wikidb_backend_peardb_sqlite: fatal database error
 * DB Error: invalid
 * ( ** ** sqlite:////var/lib/phpwiki/phpwiki_pagedb.db)
-------------------
Is there a way to fix this, or a way to connect directly to the db file 
so as to delete the masses of spam comments?
Thanks,
Ale
From: Reini U. <ru...@x-...> - 2008年12月05日 15:28:14
Ale Fernandez schrieb:
> Hi,
> 
> I have a problem that an old phpwiki site I used to run has got spammed 
> into a spam sandwich that would have scooby doo sweating. It's 2 gb or 
> so in size.
> 
> Here's the error I get on most pages:
> 
> ----------------
> Fatal Error:
> 
> lib/WikiDB/backend/PearDB.php:59: Error: Can't connect to database: 
> wikidb_backend_peardb_sqlite: fatal database error
> 
> * DB Error: invalid
> * ( ** ** sqlite:////var/lib/phpwiki/phpwiki_pagedb.db)
> *
> 
> /usr/share/php/DB/sqlite.php:134: Warning: is_file(): Stat failed for 
> /var/lib/phpwiki/phpwiki_pagedb.db (errno=75 - Value too large for 
> defined data type)
> 
> lib/WikiDB/backend/PearDB.php:59: Error: Can't connect to database: 
> wikidb_backend_peardb_sqlite: fatal database error
> 
> * DB Error: invalid
> * ( ** ** sqlite:////var/lib/phpwiki/phpwiki_pagedb.db)
> 
> -------------------
> 
> Is there a way to fix this, or a way to connect directly to the db file 
> so as to delete the masses of spam comments?
The sqlite extension might work with such a file handle once opened,
but the PHP is_file() obviously cannot handle > 2GB.
I would try to despam it up on the commandline. Or work with a smaller 
backup.
-- 
Reini Urban
http://phpwiki.org/ http://murbreak.at/
From: Reini U. <ru...@x-...> - 2008年12月07日 14:28:41
Ale Fernandez schrieb:
> Sorry how do I despam it on the command line?
> 
> Thanks for the reply! I had given up completely
> 
> Ale
> 
> Reini Urban wrote:
>> Ale Fernandez schrieb:
>>> Hi,
>>>
>>> I have a problem that an old phpwiki site I used to run has got 
>>> spammed into a spam sandwich that would have scooby doo sweating. 
>>> It's 2 gb or so in size.
> <snip>
>>> -------------------
>>>
>>> Is there a way to fix this, or a way to connect directly to the db 
>>> file so as to delete the masses of spam comments?
>>
>> The sqlite extension might work with such a file handle once opened,
>> but the PHP is_file() obviously cannot handle > 2GB.
>>
>> I would try to despam it up on the commandline. Or work with a smaller 
>> backup.
open the file with sqlite and delete some pages and versions you don't 
need to be able to get under 2GB.
$ sqlite /var/lib/phpwiki/phpwiki_pagedb.db
SQLite version 2.8.17
Enter ".help" for instructions
sqlite> .tables
link nonempty page pref recent session version
sqlite> select pagename,version.id,version.version,content from 
page,version where page.id=version.id order by mtime limit 10;
...
sqlite> delete from version where id=<bla> and version=<bla>;
-- 
Reini Urban
http://phpwiki.org/ http://murbreak.at/
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /