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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • all dashlets showing "404 - Category not found" after having moved a site
Pages: [1]

Author Topic: all dashlets showing "404 - Category not found" after having moved a site  (Read 1140 times)

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
all dashlets showing "404 - Category not found" after having moved a site
June 11, 2013, 07:55:12 am
I moved a CiviCRM installation from one site to another, and tried to follow these instructions... http://wiki.civicrm.org/confluence/display/CRMDOC43/Moving+an+Existing+CiviCRM+Installation+from+one+Drupal+frontend+to+another
However, everything seems fine but for the dashboard, where every dashlet is covered with red "X"s (making it hard to read the text that it is trying to display -  see screenshot attached), but the text says...
Quote
404 - Category not found

You may not be able to visit this page because of:

    an out-of-date bookmark/favourite
    a search engine that has an out-of-date listing for this site
    a mistyped address
    you have no access to this page
    The requested resource was not found.
    An error has occurred while processing your request.

Please try one of the following pages:

    Home Page

If difficulties persist, please contact the System Administrator of this site and report the error below..

Category not found
Following the suggestion given here... http://forum.civicrm.org/index.php?topic=19756.0 ... I used Firebug to try to see what URL it was requesting that was causing this and the Net tab shows (when I click the 'Refresh Dashboard Data' button) the URL to be.. /civicrm/ajax/dashboard?op=get_widget&key=37871ed10cb5fa1d755118809a86890a&id=15
where id=15 (I checked in the civicrm_dashboard table) is actually the 'CiviCRM News' dashlet (and the title is appearing in the dashlet header) but the dashlet content is showing this error and all that I see in Firebug is a 404 when requesting /templates/system/css/error.css (a path which of course does not exist, in a Drupal install).

What could be wrong - ie where else should I check beyond the Directories and Resource URLs in the Administration screen?
Otherwise, how can I diagnose this further?

Thanks
Mark   :(

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: all dashlets showing "404 - Category not found" after having moved a site
June 11, 2013, 11:05:05 am
Hi Mark,

I think you may be able to resolve this with the "Refresh Dashboard" button on the dashboard.

According to this thread[1], dashlets are cached in the database, and refreshing them rebuilds the cache.

Let us know if that worked!

Jon
[1] http://forum.civicrm.org/index.php?topic=26484.0

Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
Re: all dashlets showing "404 - Category not found" after having moved a site
June 11, 2013, 01:23:17 pm
Thanks Jon, but do you mean the 'Refresh Dashboard Data' button?

That is what I clicked which enabled me to see what URLs the dashboard was calling.  If clicking that resolved the problem then I would not have posted the problem to this forum.
(Or am I missing something?)

Mark

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: all dashlets showing "404 - Category not found" after having moved a site
June 11, 2013, 01:40:15 pm
Hi Mark - you're right.  Reading comprehenson fail on my part.  :(
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
Re: all dashlets showing "404 - Category not found" after having moved a site
July 02, 2013, 06:19:28 am
In case anyone else runs into this one, I finally discovered the error of my ways (and I feel a bit dumb for not having thought to check this earlier!)

In my settings.php I forgot to change $base_url to the correct new hostname,
and in civicrm.settings.php likewise I forgot to change the line.. define( 'CIVICRM_UF_BASEURL' ..to give the new URL.

Doh!   ::)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • all dashlets showing "404 - Category not found" after having moved a site

This forum was archived on 2017-11-26.