Forums / Install & configuration / "An unexpected error has occurred" after server switch

"An unexpected error has occurred" after server switch

Author Message

Marco Zinn

Friday 17 July 2009 1:55:08 pm

SOLVED, so for your information:
We move some ez 4-Installations from one Server to some other server.
After doing this (copying all files, dumping and loading the MySQL DB, clearing cache), i was greeted with that very unusefull error-message.

As the some thread ( http://ez.no/developer/forum/install_configuration/an_unexpected_error_has_occurred__1 ) mentions, i found some more information in the error logs later. At first, there was no error log due to wrong permissions in the file system.

Anyway, the reason was simple: I didn't update the DB connection paramters in site.ini.append.
In earlier version, you saw a good error message ("Cannot connect to Database"), when this happened... now, this is gone. Nice :(

After i fixed the DB connection ini settings in the override file, cleared the cache, everything worked like charm.

BTW: When the installation was done with the setup wizard, the DB connection params is not defined in /settings/override/site.ini.append.php (which usually makes sense), but in /settings/siteaccess/<USERSITENAME>/site.ini.append.php and /settings/siteaccess/<ADMINSITENAME>/site.ini.append.php . So, it's duplicate. If you edit them there, don't forget to update them in all siteaccessed. Or simply enter your new DB connection params into /settings/override/site.ini.append.php ,which override the other settings.... and better delete them in the other files, so you wont stumble upon them later.

Hope, this saves some of you some minute or hours time...

Marco
http://www.hyperroad-design.com

Heath

Saturday 18 July 2009 3:20:06 am

Marco,

Checkout this patch. I used it recently to stop being mystified by these kinds of errors recently.

<i>http://lists.ez.no/pipermail/sdk-public/2009-July/002847.html</i>

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

eZ debug

Timing: Jan 18 2025 14:56:08
Script start
Timing: Jan 18 2025 14:56:08
Module start 'content'
Timing: Jan 18 2025 14:56:09
Module end 'content'
Timing: Jan 18 2025 14:56:09
Script end

Main resources:

Total runtime1.4317 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9609180.8047
Module start 'content' 0.00631.2427 768.7656539.8672
Module end 'content' 1.24900.1826 1,308.6328332.7500
Script end 1.4317  1,641.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3071210.0002
Check MTime0.00160.1100210.0001
Mysql Total
Database connection0.00070.048510.0007
Mysqli_queries1.348394.17101910.0071
Looping result0.00190.13321890.0000
Template Total1.398497.720.6992
Template load0.00210.145320.0010
Template processing1.396397.523820.6981
Template load and register function0.00010.007110.0001
states
state_id_array0.00110.076610.0011
state_identifier_array0.00180.128220.0009
Override
Cache load0.00170.1186200.0001
Sytem overhead
Fetch class attribute can translate value0.00170.116830.0006
Fetch class attribute name0.00110.073540.0003
XML
Image XML parsing0.00120.084030.0004
class_abstraction
Instantiating content class attribute0.00000.000440.0000
General
dbfile0.01290.8993340.0004
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs