On The Web by Ircmaxell
GNU/GPL PageCache Joomla! APC php5 Lighttpd! Redhat
Home arrow Forum
Friday, 10 September 2010
 
 
Featured Site
Main Menu
Home
Articles
Services
Portfolio
Version Information
Bug Tracker
F.A.Q.
Downloads
Forum
Contact Us
Text Link Ads
Latest Version
Feed Icon Page Cache 1.0.8 stable
Release Date: 2007-06-11
Donate!
Login
Syndicate
On The Web Forums
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Page Cache 1.0.8. error (1 viewing)
_GEN_GOTOBOTTOM Post Reply

TOPIC: Re:Page Cache 1.0.8. error

#836
ChristerT (User)
Fresh Boarder
Posts: 3
graphgraph
Click here to see the profile of this user
Page Cache 1.0.8. error 2007/07/15 12:33 Karma: 0  
Hi, I'm "testing" trying to learn Page Cache 1.0.8. As I can see it works but the error log is getting bigger and bigger whit this two errors:

[15-jul-2007 10:41:55] PHP Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/mysite/public_html/mysite/components/com_page_cache/page_cache.class.php on line 317

[15-jul-2007 10:41:55] PHP Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to mysite.com/mysite:80 in /home/mysite/public_html/mysite/components/com_page_cache/page_cache.class.php on line 317
[15-jul-2007 10:41:55] PHP Warning: implode() [<a href='function.implode'>function.implode</a>]: Bad arguments. in /home/mysite/public_html/mysite/components/com_page_cache/page_cache.class.php on line 95

Joomla 1.0.12
PHP Version 4.4.6

Christer
  The administrator has disabled public write access.
#837
ircmaxell (Admin)
Admin
Posts: 444
graph
Click here to see the profile of this user
Re:Page Cache 1.0.8. error 2007/07/15 17:35 Karma: 8  
Well, is this on a production server? What's the Joomla Live site variable set as?
  The administrator has disabled public write access.
#838
ChristerT (User)
Fresh Boarder
Posts: 3
graphgraph
Click here to see the profile of this user
Re:Page Cache 1.0.8. error 2007/07/15 18:19 Karma: 0  
System Information

PHP built On: Linux ker.oderland.com 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686
Database Version: 4.1.22-standard
PHP Version: 4.4.6
Web Server: Apache/1.3.37 (Unix) Sun-ONE-ASP/4.0.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
WebServer to PHP interface: cgi
Joomla! Version: Joomla! 1.0.12 Stable [ Sunfire ] 25 December 2006 01:00 UTC
User Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Avant Browser; Avant Browser; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
What's the Joomla Live site variable set as?
Not sure what you mean? But site is not offline!
It is in an subdomain "mysite.xxx/mysite"

Christer
  The administrator has disabled public write access.
#839
ircmaxell (Admin)
Admin
Posts: 444
graph
Click here to see the profile of this user
Re:Page Cache 1.0.8. error 2007/07/15 23:32 Karma: 8  
I see what the problem is... I'll fix it and rush out 1.0.9...
  The administrator has disabled public write access.
#906
rleathers (User)
Fresh Boarder
Posts: 2
graphgraph
Click here to see the profile of this user
Re:Page Cache 1.0.8. error 2007/08/02 20:38 Karma: 0  
Any word on the 1.0.9 "fsockopen" fix?
  The administrator has disabled public write access.
#907
ircmaxell (Admin)
Admin
Posts: 444
graph
Click here to see the profile of this user
Re:Page Cache 1.0.8. error 2007/08/02 20:46 Karma: 8  
Well, 1.0.9 has been postponed in an effort to get 2.0 out faster... here's the "hot fix"
in page_cache.class.php, change the function "page_get_headers($url)" to this
Code:

  function page_get_headers($url) {         global $mosConfig_live_site;         $header '';         $headers = array();         if(strpos($mosConfig_live_site,'://')!=0) {                 $site_name substr($mosConfig_live_site,7);         } else {                 $site_name $mosConfig_live_site;         }         if(strpos($site_name,'/')!==false) {                 list($site_tmp,$ddir) = explode('/',$site_name,2);                 if(strlen($site_tmp)>=4$site_name $site_tmp;         }         $fp fsockopen($site_name80$errno$errstr45);         if ($fp) {                 fputs$fp"GET $url HTTP/1.0\r\nHost: $site_name\r\nReferer: ".md5("jos_page_cache")."\r\n\r\n");                 while (!feof($fp)) {                         $char fgetc($fp);                         if($char ==="\n") {                                 if(ord($header) === 13 ) {                                         return $headers;                                 } else {                                         array_push($headerstrim($header));                                 }                                 unset($header);                                 $header='';                         } else {                                 $header $header.$char;                         }                 }                 fclose($fp);         } }

  The administrator has disabled public write access.
#910
rleathers (User)
Fresh Boarder
Posts: 2
graphgraph
Click here to see the profile of this user
Re:Page Cache 1.0.8. error 2007/08/07 21:44 Karma: 0  
Thanks! Worked like a charm.

Hope the small donation shows my appreciation.
  The administrator has disabled public write access.
#911
ircmaxell (Admin)
Admin
Posts: 444
graph
Click here to see the profile of this user
Re:Page Cache 1.0.8. error 2007/08/07 21:56 Karma: 8  
Thanks! I'm working fast to get 2.0 out soon...
  The administrator has disabled public write access.
_GEN_GOTOTOP Post Reply
get the latest posts directly to your desktop
 
Top! Top!
Generated in 0.17323589324951 Seconds