Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Error after moving host when clicking on 'Validate Links'

Quote Reply
Error after moving host when clicking on 'Validate Links'
Moved host. Paths are all correct.
When clicking on 'Validate links' or search function on website, getting this error. Anybody please asnser?



A fatal error has occured:
Can't call method "prepare" without a package or object reference at /home/USER/public_html/cgi-bin/resources/admin/GT/SQL/Driver/MYSQL.pm line 36.Please enable debugging in setup for more details.Stack Trace
======================================
Links (29921): Links::environment called at /home/USER/public_html/cgi-bin/resources/admin/Links.pm line 431 with no arguments.
Links (29921): Links::fatal called at /home/USER/public_html/cgi-bin/resources/admin/GT/SQL/Driver/MYSQL.pm line 36 with arguments
(Can't call method "prepare" without a package or object reference at /home/USER/public_html/cgi-bin/resources/admin/GT/SQL/Driver/MYSQL.pm line 36.
).
Links (29921): GT::SQL::Driver::MYSQL::prepare called at /home/USER/public_html/cgi-bin/resources/admin/GT/SQL/Table.pm line 949 with arguments
(GT::SQL::Driver::MYSQL=HASH(0x82f55f0), SELECT COUNT(*) FROM lsql_Links ).
Links (29921): GT::SQL::Table::do_query called at /home/USER/public_html/cgi-bin/resources/admin/GT/SQL/Table.pm line 866 with arguments
(Links::Link=HASH(0x83b9630), SELECT COUNT(*) FROM lsql_Links , ARRAY(0x82faf98)).
Links (29921): GT::SQL::Table::select called at /home/USER/public_html/cgi-bin/resources/admin/GT/SQL/Base.pm line 277 with arguments
(Links::Link=HASH(0x83b9630), ARRAY(0x82f49cc)).
Links (29921): GT::SQL::Base::count called at GT::SQL::Base::hits line 316 with arguments
(Links::Link=HASH(0x83b9630)).
Links (29921): GT::SQL::Base::hits called at /home/USER/public_html/cgi-bin/resources/admin/Links/Tools.pm line 447 with arguments
(Links::Link=HASH(0x83b9630)).
Links (29921): Links::Tools::validate_links called at GT::Template::_call_func line 764 with no arguments.
Links (29921): GT::Template::_call_func called at /home/USER/public_html/cgi-bin/resources/admin/templates/admin/compiled/tools_validate.html.compiled line 23 with arguments
(GT::Template=HASH(0x826d3d8), Links::Tools::validate_links).
Links (29921): GT::Template::parsed_template called at /home/USER/public_html/cgi-bin/resources/admin/GT/Template.pm line 600 with arguments
(GT::Template=HASH(0x826d3d8)).
Links (29921): GT::Template::_parse called at /home/USER/public_html/cgi-bin/resources/admin/GT/Template.pm line 97 with arguments
(GT::Template=HASH(0x826d3d8), tools_validate.html, HASH(0x826d504)).
Links (29921): GT::Template::parse called at /home/USER/public_html/cgi-bin/resources/admin/Links.pm line 251 with arguments
(GT::Template, tools_validate.html, ARRAY(0x826d558), HASH(0x826d504)).
Links (29921): Links::admin_page called at admin.cgi line 50 with no arguments.
Links (29921): main::main called at admin.cgi line 24 with no arguments.

Quote Reply
Re: [hegu] Error after moving host when clicking on 'Validate Links' In reply to
Hi,

Did you update database.def?

You also need to make sure all the paths are updated correctly in the .cgi files, and admin/Links/Config/Data.pm.

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] Error after moving host when clicking on 'Validate Links' In reply to
I don't know where the database.def is, so I just login Links sql admin panel > setup > try to save all screens. At SQLserver, got error that Cannot connect to database. So i just deleted the user > created again > and updated the password. It worked. Two errors gone... for now.

Thanks for your reply.
Quote Reply
Re: [hegu] Error after moving host when clicking on 'Validate Links' In reply to
Hi,

Glad that helped :)

Just hope you didn't delete any important data 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 moving host when clicking on 'Validate Links' In reply to
In Reply To:
Hi,

Glad that helped :)

Just hope you didn't delete any important data Angelic

Cheers

I selected third option on sqlserver screen (some resync option) :) So no imported data deleted...
Quote Reply
Re: [hegu] Error after moving host when clicking on 'Validate Links' In reply to
Cool Cool

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!