Cannot Delete spam comments in Gallery1 V 1.5.10

Deedee16

Joined: 2009-03-07
Posts: 2
Posted: Wed, 2009-03-11 06:25

I updated from version 1.52 to 1.5.10 due to problems uploading when my host upgraded PHP 4.4.8 to PHP 5.2.8. I can no longer delete comments from within View Comments in an album.

When I go into an album as an admin and view the comments, all the comments appear listed and then I check the box to delete the comment. When I click on the button to delete the marked comments, nothing happens. Nothing gets deleted. This worked fine before the upgrade. When I check the error log I notice this:
[04-Mar-2009 18:19:31] PHP Notice: Undefined index: 6 in /home/myusername/public_html/gallery/view_comments.php on line 119

I saw the existing post: Can't delete comments within "comments view" (1.5.9) and I am using 1.5.10 but having the same problem. I saw the post as far as how they commented out part of the code and deleted the comments, but is there another fix or do I have to comment out the code each time I need to delete unwanted comments? When the index on the comment matched the index on the picture I could delete all the comments that I wanted as long as the matching index number comment was included also. I am not sure what to do. Besides upgrading to Gallery 2, are there any other known fixes I can try?

Thank You.

Gallery version:1.5.10
Apache version:2.2.11 (UNIX)
PHP version :5.2.8
Graphics Toolkit:Netpbm

 
nmcgoo108
nmcgoo108's picture

Joined: 2009-04-17
Posts: 1
Posted: Fri, 2009-04-17 03:17

Just solved a major spam problem I was having running gallery 1.5.7! First log into gallery as admin. Go to "admin page". Click "find comment spam".

Now here is the fun part. Find out who or what is posting the comments. All the spam comments were coming from a "user" that had 123......... as the first part of the name in my case. Go do "add blacklist entries" Copy and paste some of the comments you have been receiving into the blacklist entries. The trick is to finding what is common in EVERY comment! So "123" seemed to appear from every comment as the subject so I added "123*" as a blacklist entry and clicked "update blacklist" and VIOLA! Then it found almost 8000 comments that had begun with "123" I clicked "delete"!

PRoblem Solved!!!

_Nick

 
WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Thu, 2009-11-05 20:18

I tried this and got:

Fatal error: Allowed memory size of 83886080 bytes exhausted (tried to allocate 340 bytes) in /home5/jugglerd/public_html/gallery/gallery/classes/Album.php on line 924

one thing that would be nice is if in the read comments window where you can check the boxes, if there was a "check all" and "check none" link that would let you at least choose all of the comments before hitting the delete button, without having to click on thousands of checkboxes individually...

>^,,^<
http://opalcat.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-11-05 20:23

You probably just need to increase the amount of memory available to php. This should get you going:
FAQ: Why do I get the error Allowed memory size of Xxx bytes exhausted?

or this:
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
WebKat
WebKat's picture

Joined: 2002-11-22
Posts: 182
Posted: Fri, 2009-12-04 09:39

I've tried all of the methods that I've read about for changing the memory :/

>^,,^<
http://opalcat.com

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-12-04 16:50

Post a link to your phpinfo:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
beesatmsu

Joined: 2003-05-19
Posts: 58
Posted: Tue, 2010-04-13 19:03

I have about 53,000 spam comments...gallery1.5 was trying to delete them...no error messages but if i search again, I get them again.

I found in the error log:

gallery/index.php(60) : Notice - Undefined variable: op
gallery/index.php(61) : Notice - Undefined variable: mop

how do I fix it?
this machine has amd quadcore 2.3GHz, freebsd 8.0-p2, 4 gig ram, apache2.2...
Thanks,

Zach de BeeGuy

 
beesatmsu

Joined: 2003-05-19
Posts: 58
Posted: Tue, 2010-04-13 20:27

took me like 2 hrs...not enough memory...I could only delete 1500 each time..if my search was too wide, it wont delete any....near the end I increased memory 10x and could delete 8000 each time...now all done...73,000 frigging spams!

Zach de BeeGuy