To go forward and find out what it was, I temporarily fixed the issue by adding the following line at the top of my script:. Note, that is NOT a fix for the error itself, but just a bypass in order to get to the root of the problem.
Undefined index errors appear when the array you are sending to the function does not exist anymore. Look at your code and analyze why did it disappear? Was it there in the first place? In my case it was a sloppy typo error. I had some test code that I forgot to delete note lines and :. Thanks for the post! Itry to find a solution to get image url for inserting the images to products in woocommerce.
Asked 3 years, 1 month ago. Active 1 year, 10 months ago. Viewed 3k times. A3O A3O 11 11 silver badges 27 27 bronze badges. Add a comment. Active Oldest Votes. Update 2 Added an if statement to allow download generation to only one file The following code will auto add a downloadable file made from the product image The download title comes from the EXIF data title.
Tested and works. Thanks but I think we maybe mis understand each other. Anyhow, it is not working at my end. When no Product Title Post Title is given it is simply not save at all. What am I doing wrong here? A3O No mis understanding… That is what I have set in the function.
I'm feeling so stupid but The one that resides at the top of the Add new Product page. I have make an edit to my question. This code also you can write in the functions. Are you using any other method for a similar task?
Please share in the comment section below. If you liked this article, then please subscribe to our YouTube Channel for video tutorials. Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Email address:.
0コメント