With the patch, I get the following error within the browser:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /usr/share/mythtv/mythweb/modules/weather/tmpl/default/weather.am.php on line 35
If I adjust line 35 of the patch from
+ echo "images[$i].src = \ getcwd() . "/". cache_dir ."/". $matches[1] ."-$i\";\n";
to be
+ echo "images[$i].src = \"" . getcwd() . "/". cache_dir ."/". $matches[1] ."-$i\";\n";
I no longer get a php error, but weather map doesn't show. /var/log/apache/error.log seems to indicate getcwd() points to /var/www/usr for some reason:
[Tue Sep 23 13:05:44 2008] [error] [client 127.0.1.1] File does not exist: /var/www/usr, referer: http://media/mythweb/weather
In trying to come up with another work-around, I noticed that these very lines of code have changed in upstream trunk. See: http://svn.mythtv.org/trac/ticket/5171
Unfortunately that doesn't fix it either - it ends up pointing to the same place as 0.21-fixes:
[Tue Sep 23 12:12:33 2008] [error] [client 127.0.1.1] File does not exist: /var/www/data/cache, referer: http://media/mythweb/weather
With the patch, I get the following error within the browser:
Parse error: syntax error, unexpected T_CONSTANT_ ENCAPSED_ STRING, expecting ',' or ';' in /usr/share/ mythtv/ mythweb/ modules/ weather/ tmpl/default/ weather. am.php on line 35
If I adjust line 35 of the patch from
+ echo "images[$i].src = \ getcwd() . "/". cache_dir ."/". $matches[1] ."-$i\";\n";
to be
+ echo "images[$i].src = \"" . getcwd() . "/". cache_dir ."/". $matches[1] ."-$i\";\n";
I no longer get a php error, but weather map doesn't show. /var/log/ apache/ error.log seems to indicate getcwd() points to /var/www/usr for some reason:
[Tue Sep 23 13:05:44 2008] [error] [client 127.0.1.1] File does not exist: /var/www/usr, referer: http:// media/mythweb/ weather
In trying to come up with another work-around, I noticed that these very lines of code have changed in upstream trunk. See: svn.mythtv. org/trac/ ticket/ 5171
http://
Unfortunately that doesn't fix it either - it ends up pointing to the same place as 0.21-fixes: data/cache, referer: http:// media/mythweb/ weather
[Tue Sep 23 12:12:33 2008] [error] [client 127.0.1.1] File does not exist: /var/www/