Hi, My path looks correct. The following error is in the syslog from the Cheetah Generator.
May 23 12:00:54 localhost weewx[7901]: cheetahgenerator: Generate failed with exception '<type 'exceptions.TypeError'>' May 23 12:00:54 localhost weewx[7901]: cheetahgenerator: **** Ignoring template /etc/weewx/skins/w34skin/w34stats.php.tmpl May 23 12:00:54 localhost weewx[7901]: cheetahgenerator: **** Reason: format() got an unexpected keyword argument 'add_label' May 23 12:00:54 localhost weewx[7901]: **** Traceback (most recent call last): May 23 12:00:54 localhost weewx[7901]: **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate May 23 12:00:54 localhost weewx[7901]: **** print >> _file, compiled_template May 23 12:00:54 localhost weewx[7901]: **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in __str__ May 23 12:00:54 localhost weewx[7901]: **** rc = getattr(self, mainMethName)() May 23 12:00:54 localhost weewx[7901]: **** File "_etc_weewx_skins_w34skin_w34stats_php_tmpl.py", line 2656, in respond May 23 12:00:54 localhost weewx[7901]: **** File "_etc_weewx_skins_w34skin_w34stats_php_tmpl.py", line 106, in __errorCatcher6 May 23 12:00:54 localhost weewx[7901]: **** File "<string>", line 1, in <module> May 23 12:00:54 localhost weewx[7901]: **** TypeError: format() got an unexpected keyword argument 'add_label' Looks like I am missing something. Thanks Jerry On Thursday, May 23, 2019 at 10:28:31 AM UTC-7, steeple ian wrote: > > Hi Jerry, > > I am glad my first instinct was correct. > > The w34stats.php.tmpl file should be generating the w34stats.php file at > every archive interval. You to make sure you have the correct path settings > in the w34skin skin.conf file. > > I hope that fixes it for you. > > Ian > > On Thu, May 23, 2019 at 6:16 PM Jd D <[email protected] <javascript:>> > wrote: > >> Hi, >> I am using PHP7 and was using the previous version of template, I just >> missed that this version is now using php mb functions, so the following >> two commands fixed this for me. >> >> sudo apt-get install php7.0-mbstring >> sudo systemctl restart apache2.service >> >> Also metobridge_lookup.php has the following include >> include('w34stats.php'); >> but only file I see in the install package is w34stats.php.tmpl in the >> skins directory and the apache log has lots of undefineds. >> >> Thanks Jerry >> >> On Wednesday, May 22, 2019 at 11:30:16 PM UTC-7, steeple ian wrote: >>> >>> Hi, >>> It looks like your PHP installation is missing some modules. Please look >>> at the important information regarding installing PHP in the installation >>> guide. >>> >>> I also recommend that you upgrade to PHP7 or later. >>> >>> Ian >>> >>> Sent from my iPad >>> >>> > On 23 May 2019, at 02:35, Jd D <[email protected]> wrote: >>> > >>> > PHP Fatal error: Uncaught Error: Call to undefined function >>> mb_internal_encoding() in /var/www/html/pws_new/common.php:5\nStack >>> trace:\n#0 /var/www/html/pws_new/index.php(59): include_once()\n#1 {main}\n >>> thrown in /var/www/html/pws_new/common.php on line 5 >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-user" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/fc6d7fc0-163e-46fa-b695-ade13f743f46%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/fc6d7fc0-163e-46fa-b695-ade13f743f46%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/438b634b-39b6-43f7-b424-963c022c2b7c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
