Site update

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Anonymous's picture

Now that my website has gone live, I wanted to go ahead and update to Drupal 7.10 How would I go about updating the core?

Comments

Missing Views Module

QUARTZ45's picture

After updating the Views Module, it just completely disappeared.

    Notice: Undefined index: access in _menu_link_translate() (line 913 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_tree_check_access() (line 1446 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_link_translate() (line 913 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_tree_check_access() (line 1446 of /home/reefcove/public_html/includes/menu.inc).

What do you mean by "it just

scottrouse's picture

What do you mean by "it just completely disappeared?"

  • Do you mean the Views module code is not on your server? If so, then replace the code with the latest version of Views.
  • Do you mean you see nothing on your site but a white screen? http://drupal.org/node/158043
  • Do you mean you see your site normally but with the message you pasted above? Try clearing the cache a couple of times.

Did you update the module successfully? Were you able to replace the code and run the update.php script without any errors?

After updating modules (particularly the Views and Ctools modules), I find that clearing the cache a couple of times and running cron can help flush out some error messages.

Another way to find answers is to paste part of your error message into a Google search. You'll likely find multiple Drupal threads about the issue. Just remove all the stuff specific to your site from the error message before pasting into Google as your unlikely to find results with the same server path.

For example, with the error message Notice: Undefined index: access in _menu_link_translate() (line 913 of /home/reefcove/public_html/includes/menu.inc)., you could search for "Notice: Undefined index: access in _menu_link_translate()" or "Notice: Undefined index: access in _menu_link_translate() (line 913 of includes/menu.inc)."

Nare

shivraj96's picture

No once more no retake for any moment so please keep smiling

Update

trista13's picture

I think you are probably more advanced than me and using drush or command line, but this is the instructions I use to update (it's an FTP update).
http://eporama.com/ramblings/updating-drupal-core-without-command-line-t...

Site Updates

scottrouse's picture

See http://drupal.org/node/1223018 for instructions on updating from one dot release to another in Drupal 7.

Update

QUARTZ45's picture

Thank you Trista for the info.
Scott, I tried updating the views since the code was missing and it kept giving me the same error message. That's why I finally decided to update from Drupal 7.8 to 7.10 the problem is that it was uploaded for me into the public_html folder by Hostgator since everytime I did it, it failed. Now I'm getting

PDOException: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in lock_may_be_available() (line 167 of /home/reefcove/public_html/includes/lock.inc).

Ingrid, It sounds like this

scottrouse's picture

Ingrid,

It sounds like this may be difficult to diagnose through this forum and that there are some very serious issues occurring.

  • How did you attempt to update Views?
  • How was it that the entire Views module disappeared?
  • If you were able to delete the entire sites/all/themes/views directory, why were you not able to replace it?
  • How is it that you are attempting to update Drupal core? (As a side note, that will, in no way, solve your Views issue if it is, indeed, a Views issue.)

The error message you included above may indicate that the settings.php file doesn't contain the correct database credentials. Check that file and make sure your database name, username, password, port, and host are correct.

Is your database still intact? If you haven't done anything to it, make sure you back up your database immediately. Updating modules and updating Drupal core, especially, should always be first tested on a duplicate version of your site rather than the live version.

Did HostGator do a "one click install" of Drupal or something along those lines? If so, you may not be able to easily manually update the site. I always recommend against using a host's installer program.

In order for me to help you, I'll need to know exactly what you've done so far.

Original files

QUARTZ45's picture

I have still have all of the original files.
What happened was that I clicked on check for available updates on the modules website and it said that a new version was available. Previously I was running 7.x-3.0-rc3 the update for the Views module said to update to views 7.x-3.0

After the views module update I started getting the following error code:

Notice: Undefined index: access in _menu_link_translate() (line 913 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_tree_check_access() (line 1446 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_link_translate() (line 913 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_tree_check_access() (line 1446 of /home/reefcove/public_html/includes/menu.inc).

Which is when the Drupal kept saying that my Views module was missing. That's when I tried installing the views 7.x-3.x-dev module, but it still wouldn't show up.

That's the reason that I thought I really needed to update my Drupal core.

After the ftp file update on that's when I started getting the following message.

PDOException: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES) in lock_may_be_available() (line 167 of /home/reefcove/public_html/includes/lock.inc).

And, yes I did use the One click install through HostGator.

That's how I broke my site...

When you say you updated the

scottrouse's picture

When you say you updated the Views module, I'm assuming you did it via the Drupal user interface on your site rather than via Drush, SSH, or FTP. Is that accurate?

Can you look at your site's files via SSH or FTP and determine what may be missing?

How did you update Drupal core or did you update it yet? Does HostGator provide some sort of "click here to update your version of Drupal button?" If so, that's probably not a good button to ever click.

You'll really need to look through your site's files on the server and determine things like:

  • Is the code for the Views module there?
  • Is there anything in your sites/all/ directories or did a one-click update wipe it all out? Some of your modules seem to exist since your site is still online.

There also definitely isn't a problem with the settings.php file as I suggested before since I can see your site online.

My best suggestion is to duplicate what you have working locally on your machine, update that to 7.10 and Views 3, etc, then wipe out what you have online and upload the site correctly. If you can wait that long, I can give about an hour of time on Monday to meet with you and help you get it on your host if you can get SSH access to your hosting account at HostGator. The process is too slow, cumbersome, and unreliable without SSH.

Tech support

QUARTZ45's picture

After a long call with tech support since apparently I was locked out of the database, I successfully updated Drupal Core to 7.10
It seems to have gone back to the original error message:

    Notice: Undefined index: access in _menu_link_translate() (line 913 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_tree_check_access() (line 1488 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_link_translate() (line 913 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_tree_check_access() (line 1488 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_link_translate() (line 913 of /home/reefcove/public_html/includes/menu.inc).
    Notice: Undefined index: access in _menu_tree_check_access() (line 1488 of /home/reefcove/public_html/includes/menu.inc).

missing files

QUARTZ45's picture

Requires: Commerce (missing), Commerce_ui (missing), Commerce_payment (missing), Commerce_order (missing)
Rules (missing)

Now, I'm afraid to the Commerce Flat Rate and Commerce Shipping update :(

Ingrid, Is the code for these

scottrouse's picture

Ingrid,

Is the code for these modules on your server? You'll have to check via FTP/SSH.

Not sure what versions of

scottrouse's picture

Not sure what versions of Commerce Shipping you're using, but be sure and read the release notes for Commerce Shipping 2.0. It warns you that there is no upgrade path from Commerce Shipping 1.x to 2.x currently. Updating that module will definitely break your site.

Scott, I did the views update

QUARTZ45's picture

Scott,

I did the views update through the Drupal UI. And I did the Drupal core update through ftp by downloading the new version and then only replacing the sites folder. The rules and views module seem to have gone missing. I'll definitely keep working on the site to get it back up and running, otherwise I would greatly appreciate your help on Monday and I will look into the SSH access.

Codes not on server. I can't

QUARTZ45's picture

Codes not on server. I can't seem to find them anywhere, I'll have to check on my database again since no actual data seems to be showing up on the site

Ok. I've never seen any good

scottrouse's picture

Ok. I've never seen any good come from hosts' "one-click installers/updaters".

If it's just modules you're missing, download them from Drupal.org. Your database is somewhat intact since there is still content on your site.

I've tried downloading and

QUARTZ45's picture

I've tried downloading and installing the modules as a new installation and they just don't show up. So frustrating, I should have deft. just left everything alone

Ok. It's something I'm going

scottrouse's picture

Ok. It's something I'm going to have to look at to be able to help, I believe. Keep me posted on your progress.

I'm trying to do a fresh

QUARTZ45's picture

I'm trying to do a fresh install of my site on HostGator using FTP instead of the Quick Install, but I keep getting this error message

Warning: require_once(/home/reefcove/public_html/includes/install.core.inc) [function.require-once]: failed to open stream: No such file or directory in /home/reefcove/public_html/install.php on line 25

Fatal error: require_once() [function.require]: Failed opening required '/home/reefcove/public_html/includes/install.core.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/reefcove/public_html/install.php on line 25

I have deleted and uploaded the file multiple times and still no resolution. This message appears after the Select and Installation Profile page comes up, and I get the same error regardless of what installation I pick.

PHP Memory Limit

scottrouse's picture

It's likely a PHP memory limit issue. Do you know what the memory limit is on your server? If you're not sure, do this:

  1. Create a file called info.php and place it in your public_html directory.
  2. The contents of the file should be:
    <?php
    phpinfo
    ()
    ?>
  3. Go visit http://www.reeferscove.com/info.php in your browser.
  4. Use your browser's search to find the "memory limit" value. It should be at least 64M, if not more.

If it's less than 64M, you'll need to increase that, typically by creating or editing a php.ini file.

I found the Disk Space Usage

QUARTZ45's picture

I found the Disk Space Usage to be 999999 MB and MySQL Disk Space is 96.6 MB.

I couldn't find the memory limit value. How big should I make the memory limit?

Finally found the memory

QUARTZ45's picture

Finally found the memory limit! It's set to 128M, but it's greyed out and doesn't allow me to change it.

128M is enough. You don't set

scottrouse's picture

128M is enough. You don't set the value on the phpinfo report. It is typically set in a php.ini file. So, the PHP memory limit is not the problem.

Are you still having trouble? I can help for about an hour tomorrow afternoon.

Yes, for some reason now I'm

QUARTZ45's picture

Yes, for some reason now I'm getting the 404 error page or link not found. For awhile there it was rerouting the site to another page, and it got fixed automatically while I was on hold so I hung up. I'm really not sure what's going with it. I would really appreciate some help.