Welcome to Geeklog Wednesday, May 22 2013 @ 10:13 AM EDT
|
||||||||
![]() |
Forum Index > Extensions > PHP Blocks |
New Topic
|
Post Reply
|
Daily Dilbert problem? |
|||
| timf |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie ![]() Status: offline ![]() Registered: 10/06/04 Posts: 14 |
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 |
||||||
|
|||||||
| timf |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie ![]() Status: offline ![]() Registered: 10/06/04 Posts: 14 |
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 |
||||||
|
|||||||
| ScurvyDawg |
|
||||||
![]() ![]() ![]() ![]() ![]() Full Member ![]() Status: offline ![]() 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 ..... |
||||||
|
|||||||
| timf |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie ![]() Status: offline ![]() Registered: 10/06/04 Posts: 14 |
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 |
||||||
|
|||||||
| timf |
|
||||||
![]() ![]() ![]() ![]() ![]() Newbie ![]() Status: offline ![]() Registered: 10/06/04 Posts: 14 |
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???? |
||||||
|
|||||||
| Anonymous: Tony |
|
||||||
|
|
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! |
||||||
|
|||||||
| Content generated in: 0.24 seconds |
|
|
|