PhotoQ WordPress Photoblog Plugin Update 1.6.1 – More Options for Cron Jobs

This update of the PhotoQ Photoblog Plugin fixes issues with the automatic posting functionality under PhotoQ 1.6.

Please make sure that after you upgrade to PhotoQ 1.6.1, you also copy the updated “wimpq-cronjob.php” file from the “photoq-photoblog-plugin” folder to your WordPress root folder, overwriting the existing one if present.

Additionally, this update brings two new features related to automatic posting via cron jobs:

  1. One invocation of the cron job can now post multiple photos at once if you check “Use settings of second post button for automatic posting.” under “Settings->PhotoQ->Further Options->Automatic Posting”. If checked it will use the same settings as for the “Second Post Button” when posting via the cronjob which you can also set under “Further Options”.
  2. You can now add all photos in the FTP upload folder automatically to the queue when the cronjob runs. This is useful on a fully automated site where you have some mechanism to automatically upload photos to the FTP directory, and you want its content automatically posted. Photos are in this case posted with only the automatic titles, the default category and no tags or descriptions. To enable this feature you need to check “When cronjob runs, automatically add FTP uploads to queue.” and FTP uploads need to be enabled and configured as well of course. Also make sure that PhotoQ has write permissions to the FTP directory, otherwise it is not able to move the photos from the FTP directory to the queue but it will only copy them and reattempt to move them again the next time the cronjob is executed.

Note that adding to queue runs before posting when the cronjob executes. So if you enable both of the above features and configure the first one to post the entire queue, whenever the cron job runs it will immediately post the whole content of the FTP directory to your blog.

For a full documentation of PhotoQ describing all its features please refer to the PhotoQ page.

Comments (12)

  • 1

    shunz says:

    I can’t upgrade to 1.6.1, because a error:
    [27891] EACCELERATOR: PHP crashed on opline 30 of __construct() at /var/www/html/fenglin/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQ.php:108″

  • 2

    whoismanu says:

    shunz,

    i take it that you also use the iq2 theme. can you try to deactivate the theme and attempt the update again?

  • 3

    Serge Norguard says:

    have a problem for when the plugin is activated i get the following error :

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/modimg20071007111505.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/modimg20070804143407.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/modimg20070419082539.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/modimg20070222224246.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/0b3ea2a8a95ebbf909b1bdb44242e748-1024×704.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/1a88bdf4d5a6ee929d547baed919a7cd-1024×632.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/2a3f7280dede126fa0369a5d36f4c9e9-1024×748.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/2baeeb1c149b4ffc566edbba76468f0c-1024×768.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/2ebd9121cbfc63942d70d573f105a707-1024×670.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/5c636b83bcda9e7b2161b885d41708f4-1024×724.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/9c55176e67c0ae1bfe9ae3ee77022dc1-1024×773.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/32a303793e0b2312c44fda9eb7d62bb7-1024×716.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/76b548d90a520b23974e18c1112a38e0-1024×571.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/88de7165f04a7b490e67589e26ea9d7a-1024×669.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/101img20050210225510-1024×497.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/moe-27718-aoi_nishimata-kagamine_rin-vocaloid-727×1024.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: getimagesize(/home/FAKELOCATION/wp/wp-content/imgdir/qdir/101img20050211000823-1024×768.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQPhoto.php on line 69

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

    Warning: Division by zero in /home/FAKELOCATION/wp/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQImageSize.php on line 41

  • 4

    whoismanu says:

    serge,

    can you try to check what the true path of the files it doesn’t find is. e.g. it tries to find the following file: /home/FAKELOCATION/wp/wp-content/imgdir/qdir/modimg20071007111505.jpg

    can you check what the true location of this one should be? thanks.

  • 5

    Øyvind writes:

    Hi, I enabled exif data and then suddenly I get a lot of :

    The second argument should be either an array or an object in /var/www/pix/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQExif.php on line 53

    Can you help me?

  • 6

    whoismanu says:

    Øyvind,

    probably due to buggy exif data in the exif library photoq is using. could you send me some sample photos that are causing the problem so i can test myself? thanks

  • 7

    Øyvind thinks:

    The two top posts in my blog, has those images with exif. Could you save them or should I e-mail you them?

  • 8

    whoismanu says:

    øyvind,

    i got the two photos and tested locally. exif seems fine, i was not able to recreate the problem. could you give me a bit more info on when exactly it happens? what version of photoq do you use? thanks.

  • 9

    Øyvind says:

    I use latest version. When I enable Exif and refresh everything is fine. But as soon as I tick one exif-variable to retrieve I get one error as mentioned above. For each exif-variable I get 1 error. Now I can’t go to my wp-admin page. I get :

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/www/pix/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQExif.php on line 53

    Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /var/www/pix/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQExif.php on line 53

    Warning: Cannot modify header information – headers already sent by (output started at /var/www/pix/wp-content/plugins/photoq-photoblog-plugin/classes/PhotoQExif.php:53) in /var/www/pix/wp-includes/pluggable.php on line 850

  • 10

    Øyvind thinks:

    I threw in an extra test if $exif is an array in the exif-class, then everything worked fine :

    if(is_array($exif)) {
    if(array_key_exists($tag, $exif)){
    $foundOne = true;
    $result .= ‘<li class=”photoQExifInfoItem”>
    <span class=”photoQExifTag”>’.$tag.’:</span> <span class=”photoQExifValue”>’.$exif[$tag].’</span></li>’;
    }
    }

    Don’t know why it happends.. :)

  • 11

    ForestWander writes:

    How do I enable Cron Jobs?

    I set the automatic posting interval to every 1 hours.

    Is there anything else I need to do?

    I have several photos in the queue, should they post on their own, if I simply change the interval?

    Or are there other settings?

    Thank you

  • 12

    whoismanu says:

    forestwander,

    please read the cronjob instructions everything is explained there: http://www.whoismanu.com/photoq-wordpress-photoblog-plugin/#cronjob

    you can also look at comment 81 and the follow-up discussion here: http://www.whoismanu.com/blog/2008/09/photoq-wordpress-photoblog-plugin-15-brings-tons-of-new-features-to-your-photoblog/

whoismanu?

serving fresh homemade photographs
Use.