Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Sunday, May 19 2013 @ 02:14 AM EDT


 Forum Index > Extensions > PHP Blocks New Topic Post Reply
 Daily Dilbert problem?
   
timf
 04/20/05 01:10PM (Read 2855 times)  
+----
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



 
Profile Email Website
 Quote
timf
 04/20/05 02:07PM  
+----
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

 
Profile Email Website
 Quote
ScurvyDawg
 04/20/05 04:05PM  
+++++
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 .....

 
Profile Email Website
 Quote
timf
 04/20/05 04:51PM  
+----
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

 
Profile Email Website
 Quote
timf
 04/20/05 05:56PM  
+----
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????

 
Profile Email Website
 Quote
Anonymous: Tony
 05/17/05 02:45AM  



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!

 
 Quote
Content generated in: 0.77 seconds
New Topic Post Reply

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