I haven’t been able to replicate this bug. Are you able to turn on WP_DEBUG_LOG and tell me if you get any error messages?
does this error have anything to do with the plugin or does it affect it?
Notice: wp_deregister_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /var/ ..../wp-includes/functions.php on line 3560
Notice: wp_deregister_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /var/ ..../wp-includes/functions.php on line 3560
Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/ ..../wp-includes/functions.php on line 3508
That doesn’t look like my plugin, but it’s hard to tell because the errors only reference the file the functions were defined in, not the file that called them originally. Do you get those three errors repeating every time a new file is added via Add From Server? Can you disable all other plugins and see if you still get those errors?
Add From Server is a great plugin, but it also hasn’t been updated since 2013. Sometimes there are issues with filenames. Do your files have any spaces or unusual characters in them?
i don’t get the error on every file import, but i get it on every page..
i tried turning off all my plugins and the error went.. then tried importing 10 videos but its still the same. only 7 went in queue.
is there a code to add an attachment to the queue? what i want to do is something like this..
get all posts
-get post attachments
-if attachment is avi
-add_to_queue($Attachment_ID) // all i need is this line..
Please help me out…..again.. 😀
I was able to duplicate the Add From Server bug by running on a slower server. It seems like it is a timeout error and I think I got to the bottom of it. The next release should fix it.
For your custom code, try kgvid_cron_new_attachment_handler($post_id);
oh ok.. cool, ill wait for that. thank you once again.