CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Problem about error upgrade CiviCRM
Pages: [1]

Author Topic: Problem about error upgrade CiviCRM  (Read 312 times)

scubindu

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • internet viet nam
    • internet việt nam
  • CiviCRM version: 4.6
  • CMS version: 3.4
  • MySQL version: 4.5
  • PHP version: 5.2
Problem about error upgrade CiviCRM
January 26, 2016, 12:08:06 am
Dear all member!
When upgrading a D7 site from CiviCRM 4.6.10 to 4.6.11 I run the upgrade script via /civicrm/upgrade?reset=1 and the script isn't running. Instead I'm getting redirected to /user/1
Nothing in the CiviCRM log or the PHP error log. Running on PHP 5.6. The site was a recent clean install using 4.6.10 and I've not noticed any issues up until now.

Where to start debugging this?
Thank's!
lắp đặt camera đồng nai và lắp đặt camera bình dương và đăng ký internet fpt

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Problem about error upgrade CiviCRM
January 26, 2016, 07:10:05 am
Do you mean that the upgrade page is displayed, then you begin the upgrade process, but then you are redirected to /user/1 ?

There are probably better ways to debug, but my reflex would be to add a backtrace in CRM/Utils/System.php function "redirect". This would give an indication of whether the redirection is from CiviCRM or from a Drupal module. i.e. to add "die(print_r(debug_backtrace(), 1));"  or CRM_Core_Error::fatal('TEST');  -- with CiviCRM debugging enabled (Admin > System Settings > Debugging).

It's a bit odd that it redirects to /user/1. CiviCRM usually tends to redirect back to /civicrm/dashboard when it doesn't know what to do.

Also, just in case, don't forget to check the network console of your browser (F12 -> network tab). It might give clues about the redirection.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Problem about error upgrade CiviCRM

This forum was archived on 2017-11-26.