RESOLVED THIS MYSELF
I forgot I had htaccess passwd on the stage server — duh! (bad day)
dinamiko,
I have been combing over your code and cant figure out why your file_get_contents_by_curl($url, &$data) function always returns “401 Unauthorized” on an image files in the WP uploads folder. The folders and files are all recursively 777 and I still get the error.
eg. image file: https://stage.okonlabs.com/wp-content/uploads/2014/12/Team01-Portraits-tech01-200×300.jpg
What am I missing?
BTW: the ultimate error shows:
“Error parsing image file – image type not recognised, and not supported by GD imagecreate”
However, I traced it back to: function file_get_contents_by_curl($url, &$data)
circa line 11398 of /wp-content/plugins/dk-pdf/includes/mpdf60/mpdf.php
Your help would be greatly appreciated.