Disappearing Content

Events happening in the community are now at Drupal community events on www.drupal.org.
sedroca's picture

Has anyone else had problems with disappearing content?

I have had a publication disappear from a Personal site and a person disappear from a Department site.

publication:

I added the publication from the publication page using AddNew and Import Publication of the .ris data. I had previously added seven or eight successfully.

The new publication appeared in the publication page.

I selected edit to attach two documents. After saving, the publication page reappeared without the publication.

The document was not listed in the content posts either.

Clearing cache didn't help.

When I re-imported the publication, the .ris imported but the node was not created because "it already existed".

I ended up using phpmyadmin to track down and delete all data related to the node-id that was given in the "already existed" error message.

This worked and a new import was successful.

person:

I created a person on the people page of the Department site.

The person appeared on the people page.

I edited the person to change the photo.

After saving, the person did not appear on the people page anymore.
Also, neither the photo nor the person appear in the content post page.

Comments

You should probably upgrade

ferdi's picture

You should probably upgrade to the latest version. It looks like a known bug that was fixed https://github.com/openscholar/openscholar/issues/2809

Upgrade

sedroca's picture

I have a few questions about upgrading OpenScholar.

1) Are the instructions for OpenScholar under Drupal 6 still applicable? (repeated below)

2) When they talk about "replacing the file tree" in step 3 do they mean the openscholar directory structure headed by site/profiles/openscholar?

3) The latest OpenScholar at http://openscholar.harvard.edu/download is 7.x-3.5 which I already have. If a more recent version were present I assume I would download the .zip, open in a safe location then copy only the profiles/openscholar directory structure to overwrite the existing site/profiles/openscholar. Is that correct?

4) Github has a version SCHOLAR-3.6 here https://github.com/openscholar/openscholar/tags. I assume I download this .zip to a safe location, run the build script and then copy the resulting files into site/profile/openscholar. Is that correct?

5) Finally I assume I should avoid downloading a fresh install of Drupal in order that the existing database contents can continue to be used. Is that correct?

Procedure for upgrading OpenScholar under Drupal 6.

http://openscholar.harvard.edu/software/download-openscholar/2-0-beta13

Upgrade from previous version
1.Create a backup of your database prior to updating
2.Put your site into "Maintenance mode" the update may take a few minutes (/admin/settings/site-maintenance)
3.un-tar and replace the file tree (stash the custom modules you have added in another part of the filesystem, then move them back after the new version is in place)
4.Run (/update.php)
◦Run all avalible updates
◦In the rare case that your upgrade fails due to timeout the update have been written to recover themselves so you can refresh the page or hit start again
◦When updates complete verify that there are no red "failure: message"
5.Revert Features, the easiest way is with drush by running (drush features-revert-all) or you can use the ui at (/admin/build/features). The UI may still indicate that overrides exist, this is expected.
6.Clear the cache to remove any cached pages
7.It is now safe to remove maintenance mode if your site looks ok

Thanks!

Upgrade fail

sedroca's picture

Tried a "build yourself" installation of SCHOLAR-3.6.0 in my Documents folder with the intent of creating the openscholar directory structure which I could replace my openscholar 3.5 directory structure.

This failed when:

The drush command 'make drupal-org.make .' could not be found. [error]
A Drupal installation directory could not be found [error]

Details

Needing to upgrade from OpenScholar 3.5 to 3.6 and lacking a pre-built 3.6 to download I resolved to build a new installation of OpenScholar in the build yourself style (as per "Install on Drupal 7" below) and then copy the openscholar directory from this new installation over to my previous installation to effect the upgrade.

Install on Drupal 7
Getting started

7.x-3.5 and greater (prebuilt)

Download the latest version of OS from http://openscholar.harvard.edu/download
Extract into your document root.

7.x-3.5 and greater (build yourself)

Download the latest version of OS from https://github.com/openscholar/openscholar/tags (or git clone)
Build openscholar by running ./scripts/build (drush required)
Create symlink to or point your webserver at 'www'

I downloaded SCHOLAR-3.6.0 from https://github.com/openscholar/openscholar/archive/SCHOLAR-3.6.0.tar.gz# and un-tar'd it to my Documents folder (Ubuntu).

I opened a ctrl-alt-t window and ran the /scripts/build.

The script was not able to build the openscholar directory structure.
Note that drush is installed on this machine.

Results

sedroca@server:~/Documents/openscholar-SCHOLAR-3.6.0/scripts$ ./build
+ -n ''
+ DRUSH=drush
+ [[ -n '' ]]
+ BUILD_ROOT=.
++ dirname ./build
+ ROOT=./..
+ cd ./..
+ for DIR in '$BUILD_ROOT/www-build' sites-backup openscholar/1 openscholar/modules/contrib openscholar/themes/contrib openscholar/libraries
+ rm -Rf ./www-build
+ for DIR in '$BUILD_ROOT/www-build' sites-backup openscholar/1 openscholar/modules/contrib openscholar/themes/contrib openscholar/libraries
+ rm -Rf sites-backup
+ for DIR in '$BUILD_ROOT/www-build' sites-backup openscholar/1 openscholar/modules/contrib openscholar/themes/contrib openscholar/libraries
+ rm -Rf openscholar/1
+ for DIR in '$BUILD_ROOT/www-build' sites-backup openscholar/1 openscholar/modules/contrib openscholar/themes/contrib openscholar/libraries
+ rm -Rf openscholar/modules/contrib
+ for DIR in '$BUILD_ROOT/www-build' sites-backup openscholar/1 openscholar/modules/contrib openscholar/themes/contrib openscholar/libraries
+ rm -Rf openscholar/themes/contrib
+ for DIR in '$BUILD_ROOT/www-build' sites-backup openscholar/1 openscholar/modules/contrib openscholar/themes/contrib openscholar/libraries
+ rm -Rf openscholar/libraries
+ cd openscholar
+ drush make --no-core --contrib-destination drupal-org.make .
The drush command 'make drupal-org.make .' could not be found. [error]
A Drupal installation directory could not be found [error]

Thanks!

I couldn't build it myself

hadi farnoud's picture

I couldn't build it myself either.

download prebuild package. you need to fix openscholar profile folder. the put it in like openscholar/openscholar/ move it to just one openscholar/

Thanks that worked for me

sedroca's picture

I did what you suggested and was able to successfully upgrade from 7.x-3.5 to 7.x-3.6.

Details

I downloaded the pre-built 7.x-3.6 package and copied the contents of 7.x-3.6/profiles/openscholar/openscholar up one level to 7.x-3.6/profiles/openscholar.

The affected files and subdirectories were:

1
behat
composer.json
drupal-org-core.make
drupal-org.make
libraries
modules
openscholar.development.inc
openscholar.info
openscholar.install
openscholar.profile
openscholar.vsite.inc
scripts
tests
themes

Only the contents of 7.x-3.6/profiles/openscholar/openscholar/script did not copy as they already existed at the upper leve.

Then I replaced the 7.x-3.6/sites directory with the public_html/sites directory (public_html is my site's directory).

Then I deleted the public_html directory and renamed the 7.x-3.6 directory to be public_html.

Now I used "sudo chown mylogin:www-data -R public_html" to set file and directory ownerships to the proper values.

At this point the site was reachable.

Then, from the browser, I ran the update.php (site name /update.php) and let it update.

One last thing was that the permissions needed to be rebuilt.

After this I took the site out of maintenance mode.

Clearly profile folders are

hadi farnoud's picture

Clearly profile folders are wrong. they need to fix it in prebuild package. would be a good idea to test their package before shipping?

Dissapearing content fixed

sedroca's picture

My posts (news items) which were dissapearing when I edited them in 7.x-3.5 are not doing so in 7.x-3.6.

Thanks!

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: