Hi Umbercode,
To my knowledge there isn’t a way around this error. Having an open_basedir restriction set, prevents a few of the functions from firing off properly.
Evan
Thread Starter
Adam
(@umbercode)
Hmm, and the provider will not lift the restrictions to the tmp dir because of abuse by hackers. I can imagine this to be a problem for more people? Wouldn’t it be an idea to let the user set the cache directory in the plugin settings? For now all I can do is change the code of the plugin and redo that every time there is an update 🙁
Hey umbercode,
What line in the code are you changing? If it’s in one of the Google api files it’s probably best to leave them as is for future update purposes. If I were to swap out URLs , on the next update to the API I would need to alter the url again.
Let me know what codeo you change to get things working and I’ll see if I can come up with a solution.
Thanks,
Evan
Thread Starter
Adam
(@umbercode)
Ok, I’ll let you know when I get it to work.
Thread Starter
Adam
(@umbercode)
Ok, I got it to the point where it will sort off work. In inc/Google/Config.php I added:
$upload_dir = wp_upload_dir();
$up_url = $upload_dir['baseurl'];
And I changed line 89 into:
'directory' => $up_url . '/Google_Client'
This got rid of the error and when I use the default settings for a playlist, it will display that playlist.
However, when I change the default playlist into a gridview ([yt4wp-grid playlist_id="..."]), I get the text “displaying results for playlist…” but no videos.