Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Error after Upgrade to Centos 7

Quote Reply
Error after Upgrade to Centos 7
Dear All,

I have problem after my server crash few years ago and starting yesterday i try to make my site up back with Centos 7 and Perl 5.16.3, The error when try to access admin.cgi and on apache error log shown as:

Wed Sep 05 05:59:57.764678 2018] [cgid:error] [pid 18707:tid 140659826579200] [client xxx.xxx.xxx.xxx:49391] End of script output before headers: admin.cgi
suexec policy violation: see suexec log for more details

And when i try to execute:

perl /home/xxxxxx/public_html/xxxxx/cgi-bin/admin/admin.cgi

Its shown:

defined(@array) is deprecated at /home/xxxxxx/public_html/xxxxxx/cgi-bin/admin/GT/Base.pm line 235.
(Maybe you should just omit the defined()?)
Content-type: text/html

defined(%hash) is deprecated at (eval 3) line 31.
(Maybe you should just omit the defined()?)

<html>
<head>
<title>Links SQL 2.1.1 Administration</title>
</head>

<frameset rows="70,*">
<frame name="nav" src="admin.cgi?page=home_nav.html" scrolling="no" noresize frameborder="0" target="main">
<frame name="body" src="admin.cgi?page=home_body.html" frameborder="0">
<noframes>
<body bgcolor="#FFFFFF">

<p>Links SQL requires you to use a frames enabled browser..</p>

</body>
</noframes>
</frameset>

The error refered to Base.pm line 235 is:

my @pkg_isa = defined @{"$class\:\:ISA"} ? @{"$class\:\:ISA"} : ();



How can i fix that? Please help. TQ
Quote Reply
Re: [reenee] Error after Upgrade to Centos 7 In reply to
Hi,

Please give the attached modules a go. These bring GLinks up to date so they work with later versions of Perl. I'm using it fine on all my servers :)

PLEASE BE SURE TO BACKUP FIRST THOUGH! (just in case)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Sep 4, 2018, 5:52 AM
Quote Reply
Re: [Andy] Error after Upgrade to Centos 7 In reply to
Dear Andy

Thank you so much, due to the problem of suexec and i let cPanel tech to handle it so i just update base.pm and i try to run:

perl /home/xxxxxxx/public_html/xxxxxx/cgi-bin/admin/admin.cgi

And the output is:

Content-type: text/html

defined(%hash) is deprecated at (eval 3) line 31.
(Maybe you should just omit the defined()?)


<html>
<head>
<title>Links SQL 2.1.1 Administration</title>
</head>

<frameset rows="70,*">
<frame name="nav" src="admin.cgi?page=home_nav.html" scrolling="no" noresize frameborder="0" target="main">
<frame name="body" src="admin.cgi?page=home_body.html" frameborder="0">
<noframes>
<body bgcolor="#FFFFFF">
..................
..................


So do you have any idea on how to fix:

defined(%hash) is deprecated at (eval 3) line 31.
(Maybe you should just omit the defined()?)



Please advice and thank you so much
Quote Reply
Re: [reenee] Error after Upgrade to Centos 7 In reply to
Hi,

You need to update the modules with the ones I sent Whistle Thats where the error is coming from. The older versions of Perl allowed for "defined @var" , but the later versions are more fussy and will fatal the script. It took me hours and hours to get it working again (and doing a new install is also a pain as I have to edit install.cgi, then install, and then update the modules as well)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Error after Upgrade to Centos 7 In reply to
Thank you andy, seriously, its not easy as expected, Youre expert and maybe take it hours, but me take few days and maybe a months, trying to replace the file by file, sometime its work and sometime related to other think i dont understand at all, i'm getting old now, i play this scripts since 18 years ago and that time i'm still young, hehe, so anybody out there willing to fix it and we can talk about the price of work, maybe you andy ? Whistle
Quote Reply
Re: [reenee] Error after Upgrade to Centos 7 In reply to
I just sent you an email Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Error after Upgrade to Centos 7 In reply to
Dear Sir,

I hope somebody will remind me on how can i modify my templates, i need to do some modification on any header, which file and path should i look ? Seriously i forgot many thing what i have done

Please help. TQ
Quote Reply
Re: [reenee] Error after Upgrade to Centos 7 In reply to
Hi,

It depends on your setup. If you are using the web interface you can edit them via Templates > Build > User Templates. If you prefer to edit them via FTP (like me), then it will be in the /admin/templates/temp_set_name/ folder (ie /admin/templates/luna)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!