• Resolved squill1959

    (@squill1959)


    Hi.

    Very useful plugin. Thanks.

    Installed 1.8.2 onto a newly updated WP3.8 test installation.

    Ran image cleanup and it found two images with invalid attachment meta.

    Clicked on delete meta for the first one and it worked.

    Clicked on delete meta for the second one and I get the following fatal error.

    Fatal error: Function name must be a string in /public_html/test/wp-content/plugins/image-cleanup/image-cleanup.plugin.php on line 824

    Not sure is this log is useful (of if it is the correct log!)

    [0.0019] Info: WP_Query results written to log
    [0.0000] Registered sizes: ["thumbnail","medium","large","full"]
    [0.0001] Meta indexed so far: 1 / 28
    [0.0009] Sample meta:
     {"width":300,"height":239,"file":"2012\/10\/Ben-Web-300x239.jpg","sizes":[],"image_meta":{"aperture":0,"credit":"","camera":"","caption":"","created_timestamp":0,"copyright":"","focal_length":0,"iso":0,"shutter_speed":0,"title":""}}
    [0.0239] Meta indexed so far: 28 / 28
    [0.0281] Info: Valid and Invalid meta results written to log
    [0.0008] Info: Loaded attachments to memory [45.5 mb]
    [0.0066] Info: 74 Images found [45.5 mb]
    [0.0087] Info: 0 Invalid images found [45.5 mb]
    [0.0110] Info: Retrieved attachment images from DB [45.5 mb]
    [0.0200] Info: Backup meta results written to log [45.5 mb]
    [0.0002] Posts checked for used images 1/15
    [0.0013] Info: Invalid post image meta results written to log
    Warning: skipping script index because of too many image files
    [0.0003] Warning: skipping attachment index because of too many image files
    [0.0007] Info: Unreferenced image file results written to log


    Simon.

    http://ww.wp.xz.cn/plugins/image-cleanup/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author opicron

    (@opicron)

    This is the second report, I am investigating the issue. Very sorry. Please expect more information shortly.

    Plugin Author opicron

    (@opicron)

    A new version of the plugin has been released. I hope it will fix the troubles you have been facing. I am still not completely sure were the plugin got stuck on your bug. However I am quite sure this new release will fix it ;).

    Thread Starter squill1959

    (@squill1959)

    Hi Robbert.

    I am afraid it has not fixed it.

    The only difference in the error message is that the error has moved to line 826 rather than 824.

    If it helps, the information on the Invalid Attachment Meta list is as follows:

    '
    Index 0
    File Ben-Web-300×239.jpg
    File Exist No
    Dimensions file not found [300 x 239]
    Meta ID 2364 (full)
    Path /home/xxxxxxxx/public_html/test/wp-content/uploads/2012/10
    '

    Anything else I can do to help debug this?

    Regards,
    Simon.

    Plugin Author opicron

    (@opicron)

    Thank you for checking again. I found the issue! A new version has been uploaded just now. Good find!! Much appreciated.

    Thread Starter squill1959

    (@squill1959)

    Bingo.

    That has fixed it. Well done and thank you.

    By the way, On the plugins page in WordPress, the Visit Author Homepage and Visit Plugin Site links in the Image Cleanup section are set to ‘None’.

    <div class="active second plugin-version-author-uri">Version 1.9.1 | By <a href="http://none" title="Visit author homepage">Robbert Langezaal</a> | <a href="http://none" title="Visit plugin site">Visit plugin site</a></div>

    Simon.

    Plugin Author opicron

    (@opicron)

    Thanks! Need to update that asap 😉

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Fatal error – Function name must be a string’ is closed to new replies.