simple_html_dom : execution time out
Closed this issue · 6 comments
The YT favorites import doesn't work and I was looking into the error logs and I came across a lot of
Maximum execution time exceeded in ...../reclaim/vendor/simple-html-dom/simple-html-dom/simple-html-dom.php on line xxxx
(several lines, e.g. 1406, 1497, 439).
can I ignore this? Does this affect the YT import?
can you post a couple of lines from the error log? the class trys to get an image from the link url, which yt seems to ignore. maybe because of the user agent.
on the other hand: does your regular yt import work?
Here the log
Fri Jan 31 09:56:31.163787 2014] [:error] [pid 7815] [client 176.31.190.111:58119] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/nxd4n/wp-content/plugins/reclaim/vendor/simple-html-dom/simple-html-dom/simple_html_dom.php on line 587
[Fri Jan 31 10:12:02.858975 2014] [:error] [pid 7811] [client 176.31.190.111:59848] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/nxd4n/wp-content/plugins/reclaim/vendor/simple-html-dom/simple-html-dom/simple_html_dom.php on line 0
[Fri Jan 31 10:27:12.656892 2014] [:error] [pid 2076] [client 176.31.190.111:33656] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/nxd4n/wp-content/plugins/reclaim/vendor/diplix/URLResolver.php/URLResolver.php on line 308
[Fri Jan 31 10:42:20.387789 2014] [:error] [pid 7815] [client 176.31.190.111:35350] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/nxd4n/wp-content/plugins/reclaim/vendor/simple-html-dom/simple-html-dom/simple_html_dom.php on line 1180
[Fri Jan 31 10:56:31.175901 2014] [:error] [pid 32600] [client 176.31.190.111:37129] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/nxd4n/wp-content/plugins/reclaim/vendor/simple-html-dom/simple-html-dom/simple_html_dom.php on line 1645
[Fri Jan 31 11:10:27.622683 2014] [:error] [pid 3673] [client 176.31.190.111:38842] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/nxd4n/wp-content/plugins/reclaim/vendor/simple-html-dom/simple-html-dom/simple_html_dom.php on line 1422
[Fri Jan 31 11:25:46.549835 2014] [:error] [pid 3673] [client 176.31.190.111:40217] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/nxd4n/wp-content/plugins/reclaim/vendor/simple-html-dom/simple-html-dom/simple_html_dom.php on line 428
[Fri Jan 31 11:30:40.805770 2014] [:error] [pid 3694] [client 176.31.190.111:40998] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/nxd4n/wp-content/plugins/reclaim/vendor/diplix/URLResolver.php/URLResolver.php on line 308
For YT, I don't know, didn't publish anything recently. The ones I published have been imported, but this was before the favorites were added.
i think the errors in the error log indicate a general problem with your server setup. those are curl errors, that look like blocked requests. the youtube class does not try to use the url resolver or the simple_html_dom.
your favorites collection does not work, because your favs are protected or not available. this returns the users favs
https://gdata.youtube.com/feeds/api/users/KillcreekBe/favorites?alt=json&max-results=50
works with me:
https://gdata.youtube.com/feeds/api/users/diplix/favorites?alt=json&max-results=50
or spreeblick:
https://gdata.youtube.com/feeds/api/users/spreeblick/favorites?alt=json&max-results=50
but this would be a follow up issue: i guess you favorite your yt video with a thumbs up, not "add to favs". we could also get those upvotes. it' probably just another endpoint.
ok, thought thumbs up = add to favorite, so yes, now it's working.
For the 👍 seems not so easy (maybe there're more recent solutions):
http://code.google.com/p/gdata-issues/issues/detail?id=2345