• cprotz

    (@cprotz)


    Hi
    First a thank you for your plugin which is part of the image tagging idea I currently pursue for my photo site.
    I just obtained the necessary keys and installed your plugin. My WP site is on 4.9 and I use the Oshin theme.
    Tagging for new photos works flawlessly with both of your upload choices. Bulk tagging does not react, even if you wait for a certain time, shouldn’t there at least be some first tagged pictures be visible in the media library?

    Kind regards and greetings from Switzerland
    Christoph

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Josh Larson

    (@jplhomer)

    @cprotz Sorry to hear you’re having trouble! Would you mind replying with which browser and operating system you’re using?

    If possible, try opening the DevTools console of Google Chrome and open the “Console.” Do any messages appear there after you attempt to initiate the Bulk Tagging process?

    Glad to hear the other upload options are working!
    Josh

    Thread Starter cprotz

    (@cprotz)

    HI Josh
    Doing so I get the following two:

    POST https://www.protz.ch/cp/wp/wp-admin/admin-ajax.php 500 (Internal Server Error)
    send @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,underscore,suggest,jquery-ui-menu,wp-a11y,jq&load[]=uery-ui-autocomplete,tags-suggest,moxiejs,plupload&ver=4.9:4
    ajax @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,underscore,suggest,jquery-ui-menu,wp-a11y,jq&load[]=uery-ui-autocomplete,tags-suggest,moxiejs,plupload&ver=4.9:4
    n.(anonymous function) @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,underscore,suggest,jquery-ui-menu,wp-a11y,jq&load[]=uery-ui-autocomplete,tags-suggest,moxiejs,plupload&ver=4.9:4
    makeBulkTaggingRequest @ tmt-admin.js?ver=1511001587:38
    (anonymous) @ tmt-admin.js?ver=1511001587:109
    dispatch @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,underscore,suggest,jquery-ui-menu,wp-a11y,jq&load[]=uery-ui-autocomplete,tags-suggest,moxiejs,plupload&ver=4.9:3
    r.handle @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,underscore,suggest,jquery-ui-menu,wp-a11y,jq&load[]=uery-ui-autocomplete,tags-suggest,moxiejs,plupload&ver=4.9:3
    2(index):517

    WebSocket connection to ‘wss://public-api.wordpress.com/pinghub/wpcom/me/newest-note-data’ failed: Error during WebSocket handshake: Unexpected response code: 403
    pinghubAdd @ (index):517
    pinghubConnect @ (index):486
    handlePinghubMessage @ (index):468
    receiveMessage @ (index):186
    (anonymous) @ (index):274
    dispatch @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:3
    r.handle @ ??/wp-includes/js/jquery/jquery.js,/wp-content/js/postmessage.js?m=1377267974j:3

    I hope that gives you and idea where I have to search…
    Kind regards
    Christoph

    Plugin Author Josh Larson

    (@jplhomer)

    @crpotz Thanks for providing this data! Could you let me know what version of PHP you’re using? Please double-check that it is version 5.5 or greater. Sounds like there is a 500 error on your server, which can be hard to find the log for without some digging.

    Thread Starter cprotz

    (@cprotz)

    Hi Josh
    It should be 5.5.9 I (from 5.5.9+dfsg-1ubuntu4.22).

    It’s a virtual host with lots of servers and I had to find the correct logfile first ?? (XXX are from me)

    Think I have an error that could interest you:
    [Sat Dec 02 16:15:56.870456 2017] [fcgid:warn] [pid 13398] [client XX.XX.XXX.XX:50213] mod_fcgid: stderr: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 87300785 bytes) in /home/protz.ch/public_html/cp/wp/wp-content/plugins/taghound-media-tagger/lib/class-clarifai-api.php on line 112, referer: https://www.protz.ch/cp/wp/wp-admin/options-general.php?page=taghound-settings

    Seems to be a memory issue, not?
    However the message is strange to me the memory size was 128M (now is 256M)

    • This reply was modified 6 years, 12 months ago by cprotz.
    • This reply was modified 6 years, 12 months ago by cprotz.
    • This reply was modified 6 years, 12 months ago by cprotz.
    Plugin Author Josh Larson

    (@jplhomer)

    @cprotz thank you for this – super helpful!

    Do you by chance have the “My website is not publicly accessible” option checked? I just ran into a similar issue where the PHP request would time out due to lack of memory. This is due to the fact that each image has to be Base64 encoded before being tagged when this option is checked.

    I just released a fix – version 2.0.2. Would you give that a try?

    Thread Starter cprotz

    (@cprotz)

    Hi Josh
    I just updated, but it looks still as it is not working
    First error is with option checked, second one without:

    [Sun Dec 03 22:47:05.853700 2017] [fcgid:warn] [pid 17837] [client XXXX:62506] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /home/protz.ch/public_html/cp/wp/wp-content/plugins/taghound-media-tagger/lib/class-tagger-service.php on line 47, referer: https://www.protz.ch/cp/wp/wp-admin/options-general.php?page=taghound-settings
    [Sun Dec 03 22:47:52.131213 2017] [fcgid:warn] [pid 17838] [client XXXX:62566] mod_fcgid: stderr: PHP Warning: Invalid argument supplied for foreach() in /home/protz.ch/public_html/cp/wp/wp-content/plugins/taghound-media-tagger/lib/class-tagger-service.php on line 47, referer: https://www.protz.ch/cp/wp/wp-admin/options-general.php?page=taghound-settings

    Last lines of
    Only show lines with text

    FYI I try to tag 502 images, probably too many I guess :-), is there a chane to limit it and e.g. do it in several batches?

    Kind regards
    Christoph

    I am using docker images to test the pluging
    PHP Version: 7.2.1
    WordPress Version: 4.9.3
    Server Software: Apache/2.4.25 (Debian)

    and I can confirm I still get the same error this person gets when i try to upload new media to library, it says:
    Warning: Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/taghound-media-tagger/lib/class-tagger-service.php on line 47

    it seems this error comes from the inabilitiy to download the image from, for example, your site running behind a nat.

    — edit —
    and sure enough, your comment to set the “not publicly accessible” check to true makes it work ??

    • This reply was modified 6 years, 9 months ago by criesca.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bulk tagging’ is closed to new replies.