Posted on: 01/02/07 10:26pm
By: Laugh
I reinstalled my test server with Windows 2003, the latest php and mysql.
I then setup my current geeklog website (1.4.0sr3) on the server to see how it works (my web server uses older versions of php and mysql). Everything worked fine. I then attempted to upgrade to geeklog 1.4.1. The upgrade worked except the success.php page did not display properly as well as most other pages. It is related to the gus plugin. I'm not sure on how to fix this.
Here is the error I receive:
An error has occurred:
2 - shell_exec() [function.shell-exec]: Unable to execute 'host -W 1 192.168.1.150' @ C:\Inetpub\mywebsite\plugins\gus\functions.inc line 222
array(3) {
["ip"]=>
string(13) "192.168.1.150"
["_GUS_CONF"]=>
&array(17) {
["host_lookup"]=>
string(4) "host"
["host_lookup_timeout"]=>
int(1)
["SQL_use_TEMPORARY"]=>
bool(true)
["show_left_blocks"]=>
bool(true)
["show_right_blocks"]=>
bool(false)
["allow_ignore_anonymous"]=>
bool(false)
["hide_in_day_summary"]=>
array(1) {
[0]=>
string(20) "http://192.168.1.201"
}
["wo_fullname"]=>
bool(false)
["wo_users_anonymous"]=>
bool(true)
["wo_online"]=>
bool(true)
["wo_show_bots"]=>
bool(true)
["wo_registered"]=>
bool(true)
["wo_new"]=>
bool(true)
["wo_daily"]=>
bool(true)
["wo_refs"]=>
bool(true)
["wo_hide_referrers"]=>
array(1) {
[0]=>
string(20) "http://192.168.1.201"
}
["wo_max_referrers"]=>
int(100)
}
["timeout"]=>
int(1)
}
(This text is only displayed to users in the group 'Root'
Re: Upgrading Geeklog
Posted on: 01/03/07 09:55am
By: Laugh
I fixed my problem. I set in the gus config
$_GUS_CONF['host_lookup'] = 'gethostbyaddr';
instead of making it equal to host.
If I reached the success.php page in the install does that mean my db upgraded ok (my success paged had the above error). I checked throught the upgrade sql script (1.4.0 to 1.4.1) and from what I can tell my db has the new updates.
Re: Upgrading Geeklog
Posted on: 01/03/07 10:11am
By: Dirk
Quote by: LaughIf I reached the success.php page in the install does that mean my db upgraded ok
Yes.
bye, Dirk
Re: Upgrading Geeklog
Posted on: 04/15/07 09:47am
By: ofey
I am upgrading from GL1.4.0-sr* to GL 1.4.1
I am running 3 sites from the one GL code. I updated the first site successfully (well there are a few theme problems) but the next two give me a blank page at ..success.php I have checked out the blank page FAQ and made the recommended change to lib-commom.php. Also I tried changing the config.php files to $CONF['rootdebug']=true but still can't see any errors. The logs files are all empty.
The procedure of what I did can be seen here,
http://www.shanegibney.com/filemgmt/index.php?id=38[*1]
The databases have been successfully updated and all the info is there I just can't make my site visible.
Does anyone have any idea?
Shane
Re: Upgrading Geeklog
Posted on: 04/15/07 10:21am
By: Laugh
In lib-common
put this line (around line 39)
ini_set ('display_errors', '1'
;
just below this line
error_reporting( E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR );
to turn on php error warnings to get some more info.
Re: Upgrading Geeklog
Posted on: 04/15/07 04:17pm
By: ofey
Hi,
Thanks for your help. I read the FAQ on Blank Pages and have already added that line to my lib-common file but to no avail.
I'll need to go though everything I did again. I must have made a mistake somewhere.
Thanks,
Shane
Re: Upgrading Geeklog
Posted on: 04/15/07 04:59pm
By: ofey
I started redoing everything. The first site, set-up correctly. The second site gave me,
An error has occurred:
2 - main(/hsphere/local/home/shanegib/geeklog/system/lib-portalparts.php): failed to open stream: No such file or directory @ /hsphere/local/home/shanegib/geeklog/plugins/forum/functions.inc line 50
Line 50 of functions.inc reads,
require_once ($_CONF['path'] . 'plugins/forum/config.php'
;
I don't know why I am getting the above error as I copied everything over from
/geeklogORG/plugins/forum
to
/geeklog/plugins/forum
I'm stumped
Re: Upgrading Geeklog
Posted on: 04/15/07 08:27pm
By: jmucchiello
Blaine's lib-portalparts.php file is placed in the /geeklog/system directory when you follow the install procedure for most of his plugins. It's not a standard location for such files but if you have more than one of Blaine's plugins, it prevents function redefinition errors. Geeklog should have a standard location for such shared user libraries. Personally I think it should just be in the /geeklog/plugin directory since it is needed by one or more plugins and is not a "core" file.
Re: Upgrading Geeklog
Posted on: 04/16/07 04:20am
By: ofey
Joe,
Thanks for your help, I really appreciate it. All is working perfectly now.
Shane :banana: