Welcome to Geeklog Wednesday, March 20 2019 @ 07:14 am EDT

Geeklog Forums

Upgrading Geeklog


Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1342
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'Wink
One of the Geeklog Core Developers.

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1342
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.
One of the Geeklog Core Developers.

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: Laugh

If I reached the success.php page in the install does that mean my db upgraded ok


Yes.

bye, Dirk

Status: offline

ofey

Forum User
Full Member
Registered: 18/03/05
Posts: 213
Location:Dublin, Ireland
confused
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

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



Those who say it can't be done, are usually interrupted by others doing it.

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/05
Posts: 1342
In lib-common

put this line (around line 39)

ini_set ('display_errors', '1'Wink;

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.
One of the Geeklog Core Developers.

Status: offline

ofey

Forum User
Full Member
Registered: 18/03/05
Posts: 213
Location:Dublin, Ireland
hopeful
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
Those who say it can't be done, are usually interrupted by others doing it.

Status: offline

ofey

Forum User
Full Member
Registered: 18/03/05
Posts: 213
Location:Dublin, Ireland
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'Wink;

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 Confused
Those who say it can't be done, are usually interrupted by others doing it.

Status: offline

jmucchiello

Forum User
Full Member
Registered: 29/08/05
Posts: 985
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.

Status: offline

ofey

Forum User
Full Member
Registered: 18/03/05
Posts: 213
Location:Dublin, Ireland
happy
Joe,

Thanks for your help, I really appreciate it. All is working perfectly now.

Shane :banana:
Those who say it can't be done, are usually interrupted by others doing it.

All times are EDT. The time is now 07:14 am.

  • 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