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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Issue Upgrading CiviCRM
Pages: [1]

Author Topic: Issue Upgrading CiviCRM  (Read 4179 times)

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Issue Upgrading CiviCRM
May 16, 2013, 03:07:23 pm
I have been working on trying to get a CiviCRM install in Joomla to work after upgrading to Joomla 2.5 and trying to upgrade to Civi 4.3.3

When I try and run the upgrade scrip I get  [] (see picture attached). I can get to the introduction titled  "Upgrade CiviCRM to Version 4.3.3" but when I click Upgrade Now I get the described behavior. 

If I try to go anywhere in Civi I get a very bland error message. 
"Sorry but we are not able to provide this at the moment.
DB Error: no such table
Return to home page."

I have tried re-importing the database, and checking various related posts and I have not found anything that has worked.  I saw something similar recently in Drupal but I fixed it by running the database upgrade script in Drush  (Drupal specific command line tool).

I would greatly appreciate some assistance. 

-Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

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: Issue Upgrading CiviCRM
May 16, 2013, 03:17:52 pm
Looks like upgrade is not run hence you get errors. Can you clear media/civicrm/templates_c directory and re-try upgrade.

Kurund
Found this reply helpful? Support CiviCRM

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Issue Upgrading CiviCRM
May 16, 2013, 03:56:00 pm
After clearing the template files again I cannot login at all.  I had done that already but tried it again. 

Only thing I cna get in the admin section is:

Sorry but we are not able to provide this at the moment.
DB Error: no such table
Return to home page.

Thanks,
Steve

Steve Kessler
Owner and Lead Consultant of Denver DataMan

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: Issue Upgrading CiviCRM
May 16, 2013, 07:28:47 pm

hey steve:

2 things:

1. Can u check the version column in civicrm_domain

2. Can u check the logs in media/civicrm/ConfigAndLog/ and see what the bad query is.

the above should give us a few more clues

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

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Issue Upgrading CiviCRM
May 17, 2013, 09:37:44 am
The version is 4.0.7 but I think I see what is going on here. I did not know about these logs. 
Code: [Select]
May 17 10:31:04  [info] $backTrace = #0 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(196): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
#2 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
#3 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/DB.php(969): PEAR_Error->PEAR_Error("DB Error: no such table", -18, 16, (Array:2), "\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...")
#4 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php(564): DB_Error->DB_Error(-18, 16, (Array:2), "\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...")
#5 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -18, NULL, NULL, "\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...", "DB_Error", TRUE)
#6 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php(898): DB_common->raiseError(-18, NULL, NULL, NULL, "1146 ** Table 'sitename_joomla.civicrm_extension' doesn't exist")
#7 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/DB/mysql.php(327): DB_mysql->mysqlRaiseError()
#8 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/DB/common.php(1216): DB_mysql->simpleQuery("\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...")
#9 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php(2421): DB_common->query("\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...")
#10 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php(1613): DB_DataObject->_query("\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...")
#11 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php(155): DB_DataObject->query("\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...")
#12 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php(917): CRM_Core_DAO->query("\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...", TRUE)
#13 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Extension/Mapper.php(276): CRM_Core_DAO::executeQuery("\n        SELECT full_name, file\n        FROM civicrm_extension\n        WHE...")
#14 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/PseudoConstant.php(2107): CRM_Extension_Mapper->getActiveModuleFiles(FALSE)
#15 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Hook.php(180): CRM_Core_PseudoConstant::getModuleExtensions()
#16 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Hook.php(125): CRM_Utils_Hook->requireCiviModules((Array:1))
#17 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Hook.php(99): CRM_Utils_Hook->commonBuildModuleList("joomla")
#18 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Hook/Joomla.php(67): CRM_Utils_Hook->commonInvoke(1, Object(CRM_Core_Config), NULL, NULL, NULL, NULL, "civicrm_config", "joomla")
#19 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Hook.php(740): CRM_Utils_Hook_Joomla->invoke(1, Object(CRM_Core_Config), NULL, NULL, NULL, NULL, "civicrm_config")
#20 /home3/sitename/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Config.php(227): CRM_Utils_Hook::config(Object(CRM_Core_Config))
#21 /home3/sitename/public_html/plugins/user/civicrm/civicrm.php(107): CRM_Core_Config::singleton()
#22 /home3/sitename/public_html/plugins/user/civicrm/civicrm.php(89): plgUserCivicrm->civicrmResetNavigation(0)
#23 [internal function](): plgUserCivicrm->onUserLogin((Array:14), (Array:4))
#24 /home3/sitename/public_html/libraries/joomla/event/event.php(71): call_user_func_array((Array:2), (Array:2))
#25 /home3/sitename/public_html/libraries/joomla/event/dispatcher.php(161): JEvent->update((Array:2))
#26 /home3/sitename/public_html/libraries/joomla/application/application.php(642): JDispatcher->trigger("onUserLogin", (Array:2))
#27 /home3/sitename/public_html/libraries/joomla/application/application.php(711): JApplication->triggerEvent("onUserLogin", (Array:2))
#28 /home3/sitename/public_html/administrator/includes/application.php(234): JApplication->login((Array:2), (Array:4))
#29 /home3/sitename/public_html/administrator/components/com_login/controller.php(57): JAdministrator->login((Array:2), (Array:1))
#30 /home3/sitename/public_html/libraries/joomla/application/component/controller.php(761): LoginController->login()
#31 /home3/sitename/public_html/administrator/components/com_login/login.php(19): JController->execute("login")
#32 /home3/sitename/public_html/libraries/joomla/application/component/helper.php(383): require_once("/home3/sitename/public_html/administrator/components/com_login/login.php")
#33 /home3/sitename/public_html/libraries/joomla/application/component/helper.php(351): JComponentHelper::executeComponent("/home3/sitename/public_html/administrator/components/com_login/login.php")
#34 /home3/sitename/public_html/administrator/includes/application.php(153): JComponentHelper::renderComponent("com_login")
#35 /home3/sitename/public_html/administrator/index.php(46): JAdministrator->dispatch()
#36 {main}
It looks to me like it is not looking for the tables with the "jos" prefix for the Joomla tables.   Lobo, I see that you replied to this issue on a Joomla forum (http://forum.joomla.org/viewtopic.php?p=530545) is there documentation of how this should be done? 

Would it be worth adding this to the settings file? I would be glad to come up with the language. 

Thanks,
Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

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: Issue Upgrading CiviCRM
May 17, 2013, 10:32:52 am

hey steve:

dont see what joomla tables u r referring to

in the recent few releases, we've made a strong effort to use the cms specific funcitons and avoid making and db calls to the cms database

might be easier to chat on irc.  i cant see what is going on :)

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

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Issue Upgrading CiviCRM
May 20, 2013, 11:51:21 am
I am not sure why this was the case but the issue was that I was missing the civicrm_extension table.  I took the extension table from a working clean CiviCRM install and added it to my database and it worked. 

I am running into additional database problems now not related to this and I will post what I find.

-Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Issue Upgrading CiviCRM
May 20, 2013, 08:12:29 pm
Trying to replace the tables is not working out well because then latter on in the process the upgrade says that  "it appears you started this upgrade before"

Lobo, you told me about  the files in civicrm/CRM/Upgrade/Incremental (in IRC) but I am not sure how to execute them.   

Thanks,
Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Issue Upgrading CiviCRM [Resolution]
May 22, 2013, 03:46:24 pm
I was not able to solve this issue by fixing a direct upgrade however I was able to make this work by starting from the beginning and then doing the upgrade for 4.1, 4.2 and 4.3.3. This worked very well.

If you do this make sure to all the cleanup steps between each phase of the upgrade such as clearing the templates_c directory. 

Hope this helps someone! 

-Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Issue Upgrading CiviCRM
September 04, 2013, 10:42:12 am
I am receiving the same error symptoms as described in this topic.  I am on Joomla 2.5.14 with Civi 4.1.3, trying to upgrade to 4.3.5.
I have went through the process three times now with the same results - I am unable to access my website front or back ends now, receiving the "DB Error:  No Such Table".

This is after performing the extension upgrade and then running the database upgrade.

I have not tried going from 4.1.3 to 4.2 then 4.3.5 as the poster suggests, but I guess I will do that next.  I would really like to understand what the issue is though!

Craig

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Issue Upgrading CiviCRM
September 04, 2013, 10:52:43 am
I got it to work by reloading the files. Also make sure that if you did the upgrade on one system and not on the other that you have the changes to the settings file done on the upgrade. 

I did that once where I did the upgrade in a test environment and then tried to use the older config files. 

Hope this helps.

-Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Issue Upgrading CiviCRM
September 04, 2013, 11:36:30 am
Thanks Steve.   I have made sure that all settings files were modified properly.   I just tried 4.1.3 to 4.2.10, and got another error on the database upgrade...
Quote
[Error: Create financial records for contributions]
Error 1: Call to undefined method CRM_Core_PseudoConstant::accountOptionValues() in /var/www/vhosts/vps-1101739-10368.manage.myhosting.com/httpdocs/administrator/components/com_civicrm/civicrm/CRM/Upgrade/Incremental/php/FourThree.php, line 422

Logs talk about a missing civicrm_extensions table, but it exists, and then something about an array field missing.

I am going to try an older 4.2.x image next.  This is driving me crazy.

Craig

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Issue Upgrading CiviCRM
September 04, 2013, 11:41:42 am
Sorry, I thought this was a different issue. What I would recommend is going back to your backup and then doing a minor 4.1 upgrade and see what happens.  I have found sometimes the best way to do this is more upgrades and it works.  Not the best answer but if it works I guess it work .

-Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Issue Upgrading CiviCRM
September 10, 2013, 06:45:12 am
if you are backing things out in order to rerun an upgrade with a lower version, you will need to manually delete the civicrm core files. here's what is happening.

- you're running 4.1
- you install 4.3, which copies the new codebase to /administrator/components/com_civicrm
- you run into a problem, so you decide to reinstall 4.1. you do so from the joomla extension installer
- joomla copies 4.1 codebase to the folder above. however... it does not delete what was already there -- which means your 4.1 files overwrite 4.3 (as expected), but any files found in 4.3 and NOT in 4.1 are left in place
- you run the DB upgrader, which has an auto-find function that says something like, "let me look for all the DB upgrade files in the upgrade folder and process them in order...". but the problem is, you left some of the 4.3 DB files in place, so the upgrader sees them and believes that they are valid, and tries to process them. consequently, you're triggering 4.2 and 4.3 upgrades while working with a (primarily) 4.1 codebase -- and things start erroring.

the same may be true of the DB. if you did not drop all civi tables before importing your backup, there may be 4.3 tables added in your original attempt that stick around and cause the upgrade to fail.

if you want to back things out and reinstall 4.1, you need to be complete about it:
- drop all civi tables
- reinstall from your backup
- drop all files in /administrator/components/com_civicrm (to be complete, you should remove files from /components/com_civicrm too -- though those files haven't really changed much in the last several civi versions)
- install the 4.1 codebase

at that point you should be back where you started from.
if the above seems like a pain, after getting things back and working at that point, you could use Akeeba Backup to generate a full file+DB backup. if you have the Pro version, there is a fairly painless restore tool, which helps you rollback to where the code and DB were. of course -- if you're running this on a production site, you need to be aware that Akeeba backs up the entire site, so any non-civicrm changes would be restored as well.

personally, I do the manual route as I have more control over the process, even if it's a bit more work.

as an aside -- the above is sort of the blessing/curse of Joomla's extension installer. it supports the concept of an upgrade, where you can install a new version of an extension on top of the old (something that was not possible in v1.5 without a lot of work by the extension developer). however, it does exactly that -- installs on top of the existing version -- it doesn't clean out the old files, thus creating the possibility of non-version files.

going back to the original post --
an error like that most likely has more details present in the civi log. check out /media/civicrm/ConfigAndLog and view the current log file. might be worth tailing that file in the command line while you rerun the upgrade if you suspect the error may reoccur.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Issue Upgrading CiviCRM

This forum was archived on 2017-11-26.