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
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
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.
Thanks!
Upgrade fail
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:
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.
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
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/
Hadi Farnoud
فروشگاه ساز | ایمیل مارکتینگ پاکت
Thanks that worked for me
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
Clearly profile folders are wrong. they need to fix it in prebuild package. would be a good idea to test their package before shipping?
Hadi Farnoud
فروشگاه ساز | ایمیل مارکتینگ پاکت
Dissapearing content fixed
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!