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) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 1.4 -> 1.8 DB Dump Question
Pages: [1] 2

Author Topic: 1.4 -> 1.8 DB Dump Question  (Read 6200 times)

FredJones

  • Guest
1.4 -> 1.8 DB Dump Question
July 30, 2007, 11:17:39 am
Says here http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrading+Drupal+Sites+from+v1.7+to+v1.8#UpgradingDrupalSitesfromv1.7tov1.8-DumpandReloadDatabasetoEnsureDBStructureisCurrent

that I should dump my data, rebuild the tables and then reinsert the data. But what if I don't have a separate DB for CiviCRM? Mine's the same as my regular Drupal DB. This is problematic, no?

FredJones

  • Guest
Re: 1.4 -> 1.8 DB Dump Question
July 30, 2007, 11:42:22 am
I suppose I could just manually create DROP TABLE commands for all Drupal tables.

But now I am having a bigger problem. I ran the update SQL and then I remove my 1.4 code and replace it with 1.8 code and I get this:

Fatal error: Class 'CRM_Core_Permission' not found in E:\ApacheRoot\mysite\modules\civicrm\CRM\Core\Block.php on line 99

Any ideas?

Thanks.

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: 1.4 -> 1.8 DB Dump Question
July 30, 2007, 02:37:08 pm
Did you do the upgrade scripts 1.4 > 1.5 > 1.6 > 1.7 >1.8 ?

Plus you did backup the tables before you started. Can't help on the specif error...

FredJones

  • Guest
Re: 1.4 -> 1.8 DB Dump Question
July 30, 2007, 03:05:08 pm
> Did you do the upgrade scripts 1.4 > 1.5 > 1.6 > 1.7 >1.8 ?

Yes.

> Plus you did backup the tables before you started. Can't help on the specif error...

I presume you're joking. It would be foolhardy to try this upgrade on a live site. I am working on my local workstation with a copy of the site to see if I can get the upgrade to work.

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: 1.4 -> 1.8 DB Dump Question
July 30, 2007, 03:18:47 pm
Fred, apologies for stating the obvious. Unless anyone comes up with a fix (I don't have any answers) you could try dropping the whole db (or renaming it) and reloading a new db and see if the error still exists. Assuming it does then the error is in the db data. Hope this helps and is not just banality.

FredJones

  • Guest
Re: 1.4 -> 1.8 DB Dump Question
July 30, 2007, 03:28:03 pm
> Hope this helps and is not just banality.

OK, that is a good idea. THanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: 1.4 -> 1.8 DB Dump Question
July 30, 2007, 03:29:50 pm
Quote from: FredJones on July 30, 2007, 11:42:22 am
But now I am having a bigger problem. I ran the update SQL and then I remove my 1.4 code and replace it with 1.8 code and I get this:

Fatal error: Class 'CRM_Core_Permission' not found in E:\ApacheRoot\mysite\modules\civicrm\CRM\Core\Block.php on line 99

Fred - Can you check if the following file exists in your upgraded install:
E:\ApacheRoot\mysite\modules\civicrm\CRM\Core\Permission.php

If not, then it would seem that there was a problem untarring the 1.8 files - and that the installed codebase is incomplete. If the file is present, then repost with more specifics - the CiviCRM package file you downloaded? the version of php your server is running? what URL you are requested when you get that error?
Protect your investment in CiviCRM by  becoming a Member!

FredJones

  • Guest
Re: 1.4 -> 1.8 DB Dump Question
July 30, 2007, 03:35:10 pm
Yes, I have that file. I go to http://beitnatan.o/?q=admin/modules and I get this error. I am using PHP 5 and MySQL 5. The Drupal we have, however, is Drupal 4.7.2, 2006-06-01.

CiviCRM is civicrm-1.8.beta.10594-drupal-php5.tar.gz

Thanks.
« Last Edit: July 31, 2007, 01:50:15 am by FredJones »

FredJones

  • Guest
Re: 1.4 -> 1.8 DB Dump Question
July 31, 2007, 02:02:57 am
Seems like I am doing something wrong here (or my Drupal version is no good) because I replaced the code of 1.8 with 1.7 and now I get this:

Fatal error: Class 'CRM_Core_Permission' not found in E:\ApacheRoot\mysite\modules\civicrm\CRM\Core\Block.php on line 460

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: 1.4 -> 1.8 DB Dump Question
July 31, 2007, 10:12:02 am
Fred - It looks like the functions which re-create the menus (in CRM/Core/Menu.php) are not getting called - and therefore the require_once which they include for CRM/Core/Permission.php isn't happening. Did you do steps 7 and 8 in the upgrade instructions (delete from drupal sessions table and "Reload Drupal Modules and Reset Drupal Menus"?

If you've deleted all records for drupal sessions table - you might try doing step 8 in reverse order (since it looks like you're getting the error when you go to Administer Modules) - i.e. try resetting drupal's menus first.

If none of that works (with the 1.8 codebase) - then the next thing I'd probably try is temporarily adding the following line to Block.php at line 44:
Code: [Select]
            require_once 'CRM/Core/Permission.php';

I suspect other errors will show up - but they might give us better clues on why your install is behaving oddly.
Protect your investment in CiviCRM by  becoming a Member!

FredJones

  • Guest
Re: 1.4 -> 1.8 DB Dump Question
July 31, 2007, 10:56:21 am
Reset Drupal Menus? I don't even see a way to do that in Drupal 4.7.

Truth is that the only thing on this Drupal install is CiviCRM anyway so I am trying now to start with Drupal 5.2 and CiviCRM 1.8 and see if I can transfer my existing CiviCRM data. So far it's 90% working. Some issues with unicode characters (half of my contact table is in Hebrew) but I think I can fix that.

Thanks.

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: 1.4 -> 1.8 DB Dump Question
August 01, 2007, 12:44:20 am
Quote from: FredJones on July 31, 2007, 10:56:21 am
Reset Drupal Menus? I don't even see a way to do that in Drupal 4.7.

You should be able to do that in much the same way as in Drupal 5, namely by going to the menu admin and saving it.

Quote from: FredJones on July 31, 2007, 10:56:21 am
Truth is that the only thing on this Drupal install is CiviCRM anyway so I am trying now to start with Drupal 5.2 and CiviCRM 1.8 and see if I can transfer my existing CiviCRM data.

That’s always a good (better, even) idea. :)

Quote from: FredJones on July 31, 2007, 10:56:21 am
Some issues with unicode characters (half of my contact table is in Hebrew) but I think I can fix that.

Do let us know if these issues prevail.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

alan426

  • Guest
Re: 1.4 -> 1.8 DB Dump Question
August 21, 2007, 07:16:10 pm
I'm having the same problem, only while upgrading from 1.7 to 1.8-stable.
Fatal error: Class 'CRM_Core_Permission' not found in /usr/share/drupal-4.7.7/sites/default/modules/civicrm/CRM/Core/Block.php on line 99

I've followed the installation steps to the letter.  I also tried inserting the require_once code on line 44 of Block.php, as above.  It generated an "unexpected require_once" error.

Did Fred find a way to resolve his issue?

alan426

  • Guest
Re: 1.4 -> 1.8 DB Dump Question
August 21, 2007, 07:28:35 pm
Oh, forgot to mention, I'm using Drupal 4.7.  Upgrading Drupal would be difficult because of other modules that require 4.7 only.

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: 1.4 -> 1.8 DB Dump Question
August 21, 2007, 07:30:57 pm

I suspect this might be a bug with CiviCRM and Drupal 4.7. We don't really test CiviCRM versions on Drupal 4.7 (not enough resources to do so)

I suspect you made a typo when adding the require_once statement. Can u follow this pattern:

            // seems like this is needed for drupal 4.7, have not tested
            require_once 'CRM/Core/Permission.php';
            if ( CRM_Core_Permission::access( 'Gcc' ) ) {

and see if it works

thanx

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

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 1.4 -> 1.8 DB Dump Question

This forum was archived on 2017-11-26.