Gossamer Forum
Home : Products : Gossamer Links : Discussions :

help! admin inaccessible

Quote Reply
help! admin inaccessible
Hi,

I have installed Links 2.1.1.
I have noticed that most of the pages are now inaccessible. For istance on
on admin/admin.cgi I have this error
GT::SQL (26641): Wrong argument passed to this subroutine. Usage: The defs directory '/home3/mysite/cgi/links/admin/defs' does not exist, or is not a directory. at /home/mysite/cgi/links/admin/GT/SQL.pm line 137.

I know my ISP made some change on the server. Before root was /home/ now it is /home3/
I have searched and replaced in all files of /admin/ and uploaded all files. I have an error (different).

Is the problem due to this paramater change?
How can I change this parameter wihtout having access to the admin panel?
How can I restore a backup wihtout having access to the admin panel?

thanks for your answers
Quote Reply
Re: [ver_for] help! admin inaccessible In reply to
Hi,

Erm, why are you installing such an old version? Its now on version 3.2.

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] help! admin inaccessible In reply to
Andy wrote:
Hi,

Erm, why are you installing such an old version? Its now on version 3.2.

Cheers

This version was installed years ago anditas working fine.
Quote Reply
Re: [ver_for] help! admin inaccessible In reply to
Hi,

Ok, and it was moved from one server to another, or just stopped working?

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] help! admin inaccessible In reply to
Andy wrote:
Hi,

Ok, and it was moved from one server to another, or just stopped working?

Cheers

It was not moved. The hosting company made a change and the folder were are located all files (public pages and admin pages changed).
Quote Reply
Re: [ver_for] help! admin inaccessible In reply to
Sorry, that made no sense.

Are you saying they have moved the folders around, so the paths are different?

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] help! admin inaccessible In reply to
Andy wrote:
Sorry, that made no sense.

Are you saying they have moved the folders around, so the paths are different?

Cheers

Yes

before my folder was:
/home/mysite/cgi/links

and now it is:
/home3/mysite/cgi/links
Quote Reply
Re: [ver_for] help! admin inaccessible In reply to
Do you have SSH/Telnet access? If so, run this command;

Code:
cd /home/mysite/
perl -p -i -e 's|/home/mysite/|/home3/mysite/|g' `grep -r -l '/home/mysite/' .`

Hope that helps.

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] help! admin inaccessible In reply to
I do not have telnet or SSH access.
I have replaced /home/mysite by /home3/mysite in all files of /cgi/ folder and now going to admin/admin.cgi I have this error message:

A fatal error has occured:
GT::Template::Inheritance (1093): Wrong argument passed to this subroutine. Usage: Path /home3/mysite/cgi/links/admin/Links does not exist or is not a directory at GT/Template/Inheritance.pm line 40.

Please enable debugging in setup for more details.
while /home3/mysite/cgi/links/admin/Links exists
Quote Reply
Re: [ver_for] help! admin inaccessible In reply to
Hi,

Mmm ok. Well you need to do it in:

/cgi
/cgi/admin
/cgi/admin/Links/Config/ (Data.pm)
/cgi/admin/defs

Also, you need to edit the path in your .htaccess file, as that will also be using the old path.

...it should work then =)

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: [ver_for] help! admin inaccessible In reply to
Well as the error says, the following path is being used but it doesn't exist...

/home3/mysite/cgi/links/admin/Links

Check with your host what the exact path should be.
Quote Reply
Re: [Wychwood] help! admin inaccessible In reply to
I have checked another installation of links present on the same server and it works, while the parameter is home....

Without changing anything on my bugged installation I have this message

A fatal error has occured:

Invalid template 'home.html' requested (File does not exist) at /home/mysite/cgi/links/admin/Links.pm line 233.

Please enable debugging in setup for more details.

Stack Trace
======================================
Links (12137): Links::environment called at /home/mysite/cgi/links/admin/Links.pm line 430 with no arguments.
Links (12137): Links::fatal called at /home/mysite/cgi/links/admin/Links.pm line 233 with arguments
(Invalid template 'home.html' requested (File does not exist) at /home/mysite/cgi/links/admin/Links.pm line 233.
).
Links (12137): Links::admin_page called at /home/mysite/cgi/links/admin/admin.cgi line 50 with no arguments.
Links (12137): main::main called at /home/mysite/cgi/links/admin/admin.cgi line 24 with no arguments.
Quote Reply
Re: [ver_for] help! admin inaccessible In reply to
I find it easier to simply re-install using your backup to repopulate the site.

/admin/backup/BACKUP.1


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Quote Reply
Re: [SandraR] help! admin inaccessible In reply to
Assuming you don't have extra database fields Smile

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] help! admin inaccessible In reply to
Hey Andy,

The great thing about LinkSQL is it gives you errors if you do have extra data fields, then you can simply add them using the MySQLMan for expediency. Sly

By the way still unpacking boxes - will this ever end .


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Quote Reply
Re: [SandraR] help! admin inaccessible In reply to
Quote:
The great thing about LinkSQL is it gives you errors if you do have extra data fields, then you can simply add them using the MySQLMan for expediency.

True =)

Quote:
By the way still unpacking boxes - will this ever end

LOL, the joys of moving ;)

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!