[wp-hackers] Delete Row - Refreshes Page but not DB
greglancaster71 at gmail.com
Mon Oct 21 20:55:21 UTC 2013
Also- I teste other user roles, and only Authors and higher can delete the
form entries. But anyone can add new.
On Mon, Oct 21, 2013 at 1:53 PM, Gregory Lancaster <
greglancaster71 at gmail.com> wrote:
> Its JSON that is refurning the failure message. I checked the error log
> after clearing it and this is the response:
> [Mon Oct 21 13:49:11 2013] [warn] Init: Session Cache is not configured
> [hint: SSLSessionCache]
> [Mon Oct 21 13:49:12 2013] [notice] Digest: generating secret for digest
> authentication ...
> [Mon Oct 21 13:49:12 2013] [notice] Digest: done
> [Mon Oct 21 13:49:12 2013] [notice] Apache/2.2.14 (Unix) DAV/2
> mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1
> configured -- resuming normal operations
> That relevant?
> On Sun, Oct 20, 2013 at 10:02 AM, J.D. Grimes <jdg at codesymphony.co> wrote:
>> > $del_image = wp_delete_attachment( $file, true );
>> > I think it would be smarter to convert that to an sql query (maybe
>> > wont catch it as a delete post function in sql?)
>> You want to use wp_delete_attachment(), not a custom query. The function
>> does a lot more than a single query, it cleans out all of the attachment's
>> data from the data base, and delete's the image files if there are any.
>> Are you sure that wp_delete_attachment() is actually being called? Are
>> you sure it isn't failing before then somewhere?
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
More information about the wp-hackers