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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.2 Release Testing »
  • Upgrade from 4.1 to 4.2 on Drupal 7.14
Pages: [1]

Author Topic: Upgrade from 4.1 to 4.2 on Drupal 7.14  (Read 6508 times)

kitsha

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Upgrade from 4.1 to 4.2 on Drupal 7.14
June 17, 2012, 10:11:10 pm
Hi

I am having a small issue in trying to run the upgrade script from 4.1 to 4.2

first I thought it was my theme as I could not see any text to run the script until I changed the default theme to something very simple.  then when I do see the upgrade box and message and click on the upgrade button, I get a Civicrm upgrade tasks screen with nothing much in it and no where to go and no error messages.  It looks like there is supposed to be a progress bar with a retry and skip button but these do not work.  I have tried to upgrade using different themes but all produce the same results so I know it is not the theme stopping the upgrade.

I have attached a screen shot of the Upgrade Tasks Screen that I get stuck on and would like to know if anyone knows how to get round this.


Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 18, 2012, 07:35:28 am
Can you provide more details about your install. What's your current CiviCRM version ( 4.1.x ? )
Also what theme are you using during upgrade ( try using garland )?
Ideally during upgrade drupal should be using maintenance theme. If you are using firefox, can you check if you get any errors in your firebug console.

Kurund

Found this reply helpful? Support CiviCRM

kitsha

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 18, 2012, 01:52:37 pm
Hi

I am updating from civicrm 4.1.1

Although I was using seven as my admin template, civicrm uses my site template for the upgrade.  I changed the admin template to Garland and it still used my site template.  I set the default to Garland and no difference on the screen.

Yes I do use Firefox and it has shown the error as shown in the attached screen shot

Thanks

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 18, 2012, 02:10:24 pm

civi switches to the maintenance theme in drupal during the upgrade process

this is to avoid potential issues. might want to check what your maintainance theme is or where it is set

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kitsha

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 18, 2012, 02:44:40 pm
In my case civicrm is not switching to the admin/maintenance theme.  where do I set this?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 18, 2012, 04:04:33 pm

sorry dont know the answer to that. The civi code that does it is here:

CRM/Utils/System/Base.php, function theme

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kitsha

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 18, 2012, 04:15:42 pm
Thanks - It would be useful to know how to set that up for Garland, however I do not think the theme is causing the issue.  I tried disabling all other themes and only keeping Garland and still came up with the same issue.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 18, 2012, 07:54:21 pm
Hi Kitsha (fellow kiwi here)

Are you able to tail your Apache / PHP error logs during the upgrade and see if there's any useful output there?

Might help to turn off JS aggregation so if you DO get JS errors, at least you know what they're from.

Cheers
@xurizaemon ● www.fuzion.co.nz

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 19, 2012, 01:25:26 am
Also before upgrade can you try deleting your files/civicrm/templates_c folder.

Hth
Kurund
Found this reply helpful? Support CiviCRM

kitsha

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 19, 2012, 03:40:02 pm
Ok... I moved the templates_C folder as I cannot delete this due to the %% at the beggining of the file names contained inside the folder.

I have turned off JS aggregation and the only errors that seem to be occuring when I run the update script and get to this page (which is still happening) are the following:

(i have also selected all debugging options error options and nothing else is appearing as an error)  Line 37 in the ajax.php file does not require any ')' as far as I can see.

the section of that file looks like:

27class CRM_Queue_Page_AJAX {
28
29  /**
30   * Run the next task and return status information
31   *
32   * @return array(is_error => bool, is_continue => bool, numberOfItems => int, message => string)
33   */
34  static function runNext() {
35    $errorPolicy = new CRM_Queue_ErrorPolicy();
36    $errorPolicy->call(
37    function () {
38        global $activeQueueRunner;
39        $qrid = CRM_Utils_Request::retrieve('qrid', 'String', CRM_Core_DAO::$_nullObject, TRUE, NULL, 'POST');
40        $activeQueueRunner = CRM_Queue_Runner::instance($qrid);
41        if (!is_object($activeQueueRunner)) {
42          throw new Exception('Queue runner must be configured before execution.');
43      }
44        $result = $activeQueueRunner->runNext(TRUE);
45        if ($result['is_error']) {
46          CRM_Core_Error::debug_var('CRM_Queue_Page_AJAX_runNext_result', $result);
47      }
48        echo json_encode($result);
49        CRM_Utils_System::civiExit();
50    }
51    );
52  }


Error showing in firefox:

<br />
<b>Parse error</b>:  syntax error, unexpected T_FUNCTION, expecting ')' in <b>/home/nargonco/domains/nargon.co.nz/public_html/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php</b> on line <b>37</b><br />

Then:
JSON.parse: unexpected character
f(b="<br />\n<b>Parse error</...on line <b>37</b><br />")jquery...?m5uipo (line 2)
handleError(jqXHR=Object { readyState=4, responseText="<br />\n<b>Parse error</...n line <b>37</b><br />\n", status=200, more...}, textStatus="parsererror", errorThrown=
SyntaxError: JSON.parse: unexpected character
[Break On This Error]    

...d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSet...

jquery...?m5uipo (line 4)
)runner...Upgrade (line 165)
f(b=Object { url="/civicrm/upgrade/queue/ajax/runNext", isLocal=false, global=true, more...}, f=[Object { readyState=4, responseText="<br />\n<b>Parse error</...n line <b>37</b><br />\n", status=200, more...}, "parsererror",
SyntaxError: JSON.parse: unexpected character
[Break On This Error]    

...d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSet...

jquery...?m5uipo (line 4)
])jquery...?m5uipo (line 2)
f(b=Object { url="/civicrm/upgrade/queue/ajax/runNext", isLocal=false, global=true, more...}, c=[Object { readyState=4, responseText="<br />\n<b>Parse error</...n line <b>37</b><br />\n", status=200, more...}, "parsererror",
SyntaxError: JSON.parse: unexpected character
[Break On This Error]    

...d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSet...

jquery...?m5uipo (line 4)
])jquery...?m5uipo (line 2)
remove(a=200, c="OK", l=Object { text="<br />\n<b>Parse error</...n line <b>37</b><br />\n"}, m="Date: Tue, 19 Jun 2012 ...y ()\nConnection: close\n")jquery...?m5uipo (line 4)
remove(a=readystatechange , e=undefined)jquery...?m5uipo (line 4)
[Break On This Error]    

...],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](...



Is there anyway I can run this script manually if the only thing holding it up is the ajax? ???

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 20, 2012, 04:11:11 am
Looks like it an issue with your PHP version, you need to have PHP 5.3.x

check http://stackoverflow.com/questions/3809405/converting-code-with-anonymous-functions-to-php-5-2

HTh
Kurund
Found this reply helpful? Support CiviCRM

kitsha

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4
  • CMS version: Drupal 7
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
June 21, 2012, 03:19:46 pm
Thanks - thats probably it then - I will have to leave the upgrade until bolthost upgrade the php version - bugger!

Thank you everyone for your assistance.

DicE

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5.1
  • CMS version: Drupal 7.latest
  • MySQL version: 5.5.25a
  • PHP version: 5.3.15
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
July 26, 2012, 11:00:31 am
I see, to have the same problem after doing an upgrade from 4.1.5, first to 4.2b2 and the same to 4.2b3
I also changed my dafault theme to Bartik but got the same misformed upgrade wizard that keeps saying that I'm still upgrading my DB from 4.1.5 (so obviously the upgrade to 4.2b2 also failed)

why do we require PHP 5.3 in order to run Civi4.2bx?
I could not find that requirement back?

in the install guide for drupal 7 it says:
CiviCRM for Drupal has been developed and tested by our team on the following 'recommended' platforms:

    Linux
    Apache 2.1
    PHP 5.2.x (or newer)
    MySQL 5.x with InnoDB enabled
    Drupal 7.x

which I have.

DicE

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
July 26, 2012, 11:48:49 am

We've not yet updated all the docs but we've started using more of PHP 5.3 features.

For 4.2 onwards, we will up the minimum PHP requirements to a more recent version of PHP 5.3

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

DicE

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
  • CiviCRM version: 4.5.1
  • CMS version: Drupal 7.latest
  • MySQL version: 5.5.25a
  • PHP version: 5.3.15
Re: Upgrade from 4.1 to 4.2 on Drupal 7.14
July 26, 2012, 12:29:44 pm
OK Lobo,

thanks for that confirmation. Totally understand that you could not possibly have all docs updated by now.
just assumed that if the announcement for the latest v4.2 beta is set online with a link to installation documents then out of the complete wiki that page would be the up to date one  :-\

better downgrade it now and wait for the hosting service to upgrade php.

thanks for your quick response!

DicE

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.2 Release Testing »
  • Upgrade from 4.1 to 4.2 on Drupal 7.14

This forum was archived on 2017-11-26.