Welcome to Geeklog, Anonymous Tuesday, July 23 2024 @ 11:48 pm EDT

Geeklog Forums

Daily Dilbert problem?


Status: offline

timf

Forum User
Newbie
Registered: 10/06/04
Posts: 14
Location:Las Vegas
The gif file saved to the directory is 0 size.

I checked error logs and found:

PHP Warning: base64_decode() expects parameter 1 to be string, array given in [path to geeklog]/system/lib-custom.php on line 71

I'm running php version 4.3.10


 Quote

Status: offline

timf

Forum User
Newbie
Registered: 10/06/04
Posts: 14
Location:Las Vegas
I checked the troubleshooting stuff referenced at:

http://www.portalparts.com/forum/print.php?id=4340

I have connectivity - I can ping the url: 64 bytes from www.esynaps.com (64.85.13.125): icmp_seq=0 ttl=114 time=62.0 ms

When I tried replacing the offending line of code to:

$image = base64_decode($newimage[DailyDilbertImageResult])

The error message no longer appears in my logfile - but the cretaed gif is still 0 sized.

l
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523
but the script only pulls from the feed onece a day.

What time is it set to do the pull?

Change that to now and then wait and see??

Maybe ..... Just my two cents
 Quote

Status: offline

timf

Forum User
Newbie
Registered: 10/06/04
Posts: 14
Location:Las Vegas
Well - it pulls automatically if there is not a 'today' file in the directory - so when I make a change and want to see if it works - I delete the 0 length file and reload the page.

I suspect it may be related to my php block rss feed issues.

http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=50215
 Quote

Status: offline

timf

Forum User
Newbie
Registered: 10/06/04
Posts: 14
Location:Las Vegas
While troubleshooting I modified the file so I can try to see whats happening:

So I've now got:


/* Setup the Web Service Client */
include ($_CONF['path_system'] .'nusoap.php');
$wsdl = "http://www.esynaps.com/WebServices/DailyDilbert.asmx?WSDL";
$client = new soapclient( $wsdl,"true");
echo $client;
echo $client->call('DailyDilbertImage', '');

/* Call the Web Service and decode the base64 contents back to a GIF file */
$image = base64_decode($client->call('DailyDilbertImage', ''));



and my output is:

Object

Array



And my logs show the same error message.....

wtf???? Can someone help me
 Quote

Tony

Anonymous
Hi,

I'm having the same problem too... my gif file is 0 sized. It's been creating 0 byte files for 2 days already. When I copied the current cartoon from Blaine's site, it displays but as soon as the next day rolls around, it goes back to a blank block again.

Please help! Banging your head
 Quote

All times are EDT. The time is now 11:48 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content