Welcome to Geeklog, Anonymous Wednesday, November 29 2023 @ 02:16 pm EST
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
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
7
9
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
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
9
8
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 .....
What time is it set to do the pull?
Change that to now and then wait and see??
Maybe .....

6
5
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
I suspect it may be related to my php block rss feed issues.
http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=50215
8
6
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????
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????

11
8
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!
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!

4
6
Quote
All times are EST. The time is now 02:16 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