function GIFEncoder (
to public function __construct (
function moonphase ($WDmoonage) {
preg_match_all('|(\d+)|is',$WDmoonage,$matches);
// print "<!-- matches=\n" . print_r($matches,true) . "-->\n";
print "<!-- WDmoonage='$WDmoonage', matches=\n" . print_r($matches,true) . "-->\n";
$mdays = $matches[1][0];
$mhours = $matches[1][1];
$mmins = $matches[1][2];
$mpct = $matches[1][3];
for the mhours,mmins,mpct values not found in the input string.alt="<?php $t1 = moonphase($moonage) . ", Moon at $moonagedays days in cycle";
The $moonage value should be computed for your CU site by } else { // perform non-WD moon stuff
$mooninfo = cGetMoonInfo(); /* Note: getMoonInfo() is located in common.php */
/* returns $mooninfo of:
[age] => 9 days, 11 hours, 57 minutes
[ill] => 65
[pic] => 8
[phase] => Waxing Gibbous
[NM] => 1294131882
[NMGMT] => Tue, 04-Jan-2011 09:04 GMT
[NMWD] => 09:04 GMT 04 January 2011
[Q1] => 1294831983
[Q1GMT] => Wed, 12-Jan-2011 11:33 GMT
[Q1WD] => 11:33 GMT 12 January 2011
[FM] => 1295472210
[FMGMT] => Wed, 19-Jan-2011 21:23 GMT
[FMWD] => 21:23 GMT 19 January 2011
[Q3] => 1298590089
[Q3GMT] => Thu, 24-Feb-2011 23:28 GMT
[Q3WD] => 23:28 GMT 24 February 2011
[Q4] => 1296700310
[Q4GMT] => Thu, 03-Feb-2011 02:31 GMT
[Q4WD] => 02:31 GMT 03 February 2011
[FM2] => 1298018189
[FM2GMT] => Fri, 18-Feb-2011 08:36 GMT
[FM2WD] => 08:36 GMT 18 February 2011
*/
print "<!-- cGetMoonInfo returns\n".print_r($mooninfo,true)." -->\n";
if(!isset($moonphase)) {$moonphase = $mooninfo->ill.'%'; }
if(!isset($newmoon)) {$newmoon = $mooninfo->NMWD; }
if(!isset($nextnewmoon)) {$nextnewmoon = $mooninfo->Q4WD; } /*check this! */
if(!isset($firstquarter)) {$firstquarter = $mooninfo->Q1WD; }
if(!isset($lastquarter)) {$lastquarter = $mooninfo->Q3WD; }
if(!isset($fullmoon)) {$fullmoon = $mooninfo->FMWD; }
if(!isset($moonphasename)) {$moonphasename = $mooninfo->phase;}
if(!isset($moonagedays)) {$moonagedays = $mooninfo->pic; }
if(!isset($moonage)) {$moonage = 'Moon age: '.$mooninfo->age.','.$mooninfo->ill.'%'; }
so it should look like the expected Weather-Display format of $moonage = "Moon age: 10 days,10 hours,41 minutes,80%";
and then the notice errata would not appear.<!-- WDmoonage='10', matches=which is not in the expected format. Do the updates to your site and see if it persists.
Array
(
- => Array
(
- => 10
)
[1] => Array
(
- => 10
)
)
-->
if(!isset($moonage)) {$moonage = 'Moon age: '.$mooninfo->age.','.$mooninfo->ill.'%'; }
is NOT being executed, likely due to having $moonage defined from a different CU tag. Since your CUtags.php has a MoonAge|10:|:
, I suspect that's a likely source. The stock CU-defs.php has nothing to convert $WX['MoonAge'] AFAIK, so there must be another bit of code in your configuration doing that. if(true or !isset($moonage)) {$moonage = 'Moon age: '.$mooninfo->age.','.$mooninfo->ill.'%'; }
to (I think) suppress the issue by creating a valid $moonage tag.
[18-Jun-2020 10:16:49 America/New_York] PHP Notice: Uninitialized string offset: 847708058 in /home/psoykkrhjuz3/public_html/BOmaps/GIFEncoder.class.php on line 79
This is the updated GIFEncoder.class.php of May 3rd. for ( $j = ( 13 + 3 * ( 2 << ( ord ( $this->BUF [ $i ] [ 10 ] ) & 0x07 ) ) ), $k = TRUE; $k; $j++ ) {
switch ( $this->BUF [ $i ] [ $j ] ) {
case "!":
if ( ( substr ( $this->BUF [ $i ], ( $j + 3 ), 8 ) ) == "NETSCAPE" ) {
printf ( "%s: %s ( %s source )!", $this->VER, $this->ERR [ 'ERR03' ], ( $i + 1 ) );
exit ( 0 );
}
break;
case ";":
$k = FALSE;
break;
}
}
with for ( $j = ( 13 + 3 * ( 2 << ( ord ( $this->BUF [ $i ] [ 10 ] ) & 0x07 ) ) ), $k = TRUE; $k; $j++ ) {
if(isset($this->BUF [ $i ] [ $j ] )) {
switch ( $this->BUF [ $i ] [ $j ] ) {
case "!":
if ( ( substr ( $this->BUF [ $i ], ( $j + 3 ), 8 ) ) == "NETSCAPE" ) {
printf ( "%s: %s ( %s source )!", $this->VER, $this->ERR [ 'ERR03' ], ( $i + 1 ) );
exit ( 0 );
}
break;
case ";":
$k = FALSE;
break;
}
} // end isset
}
switch ( $this->BUF [ $i ] [ $j ] ) {
?
[18-Jun-2020 17:44:23 America/New_York] PHP Notice: Uninitialized string offset: 1063146529 in /home/psoykkrhjuz3/public_html/BOmaps/GIFEncoder.class.php on line 79
Line 79 in GFEncoder.class.php is if(isset($this->BUF [ $i ] [ $j ] )) {
switch ( $this->BUF [ $i ] [ $j ] ) {
@switch ( $this->BUF [ $i ] [ $j ] ) {
to suppress the error message?
# error_reporting(E_ALL);
[/size]which I assume is error reporting Off. error_reporting(0)
and the errors still persist.[19-Jun-2020 19:20:01 UTC] PHP Parse error: syntax error, unexpected '$region' (T_VARIABLE) in /home/psoykkrhjuz3/public_html/BOmaps/gen-BO-maps.php on line 12
<?php
# gen-BO-maps.php
#
# This is the main control/settings for the Blitzortung map generator
# It should be run via a cron job at 5 minute intervals.
#
#--------------------------------------------------------------------------------
# settings to adjust
#
# error_reporting(E_ALL);
error_reporting(0)
$region= "3"; # Blitzortung REGION number
so the error shows for $region= "3";So has the excessive error_log issue been fixed?