jquery / themeroller.jquerymobile.com

ThemeRoller site for jQuery Mobile
Other
140 stars 73 forks source link

PHP errors on the server #70

Closed eddiemonge closed 12 years ago

eddiemonge commented 12 years ago

[Thu Jan 19 11:39:52 2012] [error] [client 130.218.5.210] PHP Warning: file_get_contents(css/user_themes/20111028-2.css) [function.file-get-contents]: failed to open stream: No such file or directory in /srv/jquerymobile.com/htdocs/themeroller/index.php on line 584, referer: http://www.google.com/url?sa=t&rct=j&q=jquery%20mobile%20theme%20roller&source=web&cd=2&ved=0CDsQFjAB&url=http%3A%2F%2Fjquerymobile.com%2Fthemeroller%2Findex.php%3Fstyle_id%3D20111028-2&ei=g3EYT8z5KpT4tgeUwoyaCw&usg=AFQjCNFuZ5O8tspghPBGBXqKmAadc5UBfQ

[Thu Jan 19 11:40:59 2012] [error] [client 130.218.13.50] PHP Warning: file_get_contents(css/user_themes/20111028-2.css) [function.file-get-contents]: failed to open stream: No such file or directory in /srv/jquerymobile.com/htdocs/themeroller/index.php on line 584, referer: http://jquerymobile.com/themeroller/index.php?style_id=20111028-2

[Thu Jan 19 11:41:14 2012] [error] [client 130.218.13.50] PHP Warning: file_get_contents(css/user_themes/20111028-2.css) [function.file-get-contents]: failed to open stream: No such file or directory in /srv/jquerymobile.com/htdocs/themeroller/index.php on line 584, referer: http://jquerymobile.com/themeroller/index.php?style_id=20111028-2

[Thu Jan 19 11:41:55 2012] [error] [client 130.218.5.210] PHP Warning: file_get_contents(css/user_themes/20111028-2.css) [function.file-get-contents]: failed to open stream: No such file or directory in /srv/jquerymobile.com/htdocs/themeroller/index.php on line 584, referer: http://www.google.com/url?sa=t&rct=j&q=jquery%20mobile%20theme%20roller&source=web&cd=2&ved=0CDsQFjAB&url=http%3A%2F%2Fjquerymobile.com%2Fthemeroller%2Findex.php%3Fstyle_id%3D20111028-2&ei=g3EYT8z5KpT4tgeUwoyaCw&usg=AFQjCNFuZ5O8tspghPBGBXqKmAadc5UBfQ

[Thu Jan 19 11:42:49 2012] [error] [client 107.10.53.240] PHP Warning: file_get_contents(css/user_themes/20111028-2.css) [function.file-get-contents]: failed to open stream: No such file or directory in /srv/jquerymobile.com/htdocs/themeroller/index.php on line 584, referer: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=jquery.mobile.structure-1.0.css

Lots more of these too

tybenz commented 12 years ago

The theme you are trying to pull up (presumably with a URL param ?style_id=20111028-2) is no longer on the server. The server only stores the shared CSS files for 30 days, and then they are deleted. Themeroller tells the user this is the share dialog: "Important note: We can only store this theme URL on the server for 30 days, then it will be deleted. Download a theme to keep a copy safe that you can import later. "

eddiemonge commented 12 years ago

can it be checked to return an error message that says it expired?

tybenz commented 12 years ago

Absolutely. I didn't mean to close the issue. I'm adding it to my to-do list

tybenz commented 12 years ago

Hey Eddie. I'm adding something to fix the JS error but how did you get the PHP error to show up? Was it on your own fork or on the live version?

eddiemonge commented 12 years ago

these were from the server logs. I think a fix would be to check is_file() before the file_get_contents()

tybenz commented 12 years ago

oh ok gotcha. i was just trying to figure out where the errors were showing up