After following the upgrade instructions (twice) at:
http://openscholar.harvard.edu/software/download-openscholar/2-0-beta11
Uncompressed the new OS2.0 beta11 release to a new folder, moved the sites/default/content (inluding the settings.php), the contrib theme and one contrib module. Additionally, ran update.php process twice, revert features manually (UI) and emptied cache.
Everything seems to be working as normal, but I am being presented the following warnings:
After performing the update process
- warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /openscholar/includes/database.mysqli.inc on line 329
- notice: The block Creative Commons Node License was assigned to the invalid region content and has been disabled.
When in Control Panel/Apperance on an individual site
- warning: htmlspecialchars() expects parameter 1 to be string, array given in /openscholar/includes/bootstrap.inc on line 856.
When uploading biograpy text on an individual sites
- warning: Illegal offset type in isset or empty in openscholar/includes/common.inc on line 915
- warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /openscholar/includes/database.mysqli.inc on line 329
Have anyone else performed the update to 2.0 beta11 as of yet, and in that case how did you experience the update process. Any ideas on how to overcome above mentioned?
Appreciate any feedback
Comments
Comment #1
ferdi commentedThank you for trying it out. We will have a look asap. Do you know what version of php are you using ?
Comment #2
astral-1 commentedMy issue has came before the above descripted:
- untar the package
- overwrite 'sites/all/' and '/profiles/openscholar'
-run /update.php
- Fatal error: Cannot redeclare spaces_og_enable() (previously declared in /public_html/sites/all/modules/contrib/spaces/spaces_og/spaces_og.module:21) in /public_html/sites/all/modules/contrib/spaces/spaces_og/spaces_og.install on line 11
Any clue for me?
Comment #3
l0me commentedThanks goes to you that let us make use of this awesome product! :)
Php version used is 5.2.17
I did encounter the same issue as reported by Astral when simply extracting the beta11 into my current openscholar folder. From there no way to proceed and I started over.
Instead I extracted the beta11 into a new folder, moved over sites/default/* including settings.php, one contrib module and one contrib theme from the previous install. The OS default theme was used in order to rule out the issues were related to the contrib theme.
Cheers
Comment #4
rbrandon commentedastral - Were you able to complete the update successfully? That Error usually only occurs prior to the update running. If so did you make sure that there were no additional updates avalible (ie none failed?)
l0me - I had looked into the "mysqli_real_escape_string" and "Creative commons block errors before the release. The mysql error was from a third party module not checking to see if a variable was set before calling db_query and the result appears to be harmless (authough annoying if you have warnings on). The block notice is because of the newly added cc module assigning the block to an invalid region. This block is not used so it getting disabled is fine.
I will try and reproduce the bio and cp errors and get back to you, not sure that I have noticed them before.
-Richard
Comment #5
rbrandon commentedAstral,
Spaces_og.install does not exist in the install, is it possible that this is leftover from a previous version?
https://github.com/openscholar/openscholar/tree/SCHOLAR-2-0-BETA11/sites...
-Richard
Comment #6
lucianoes commentedRbrandon,
I had the same problem that Astral related. Running update.php (PHP 5.2.17) produced the same error.
How can we fix this error?
Lucianoes
Comment #7
ferdi commentedThe problem in #2 is the second step. i.e.
You should not overwrite / copy over the files. Instead you should move the current docroot directory and replace it with the new one. This is very important. There is no spaces_og.install file in the new version. You have it there because you are copying files over.
Ferdi
Comment #8
lucianoes commentedPlease, another question:
Should I override everything, except 'sites/all/' and '/profiles/openscholar' ?
sites/default/settings.php has a db connection. Should I copy my custom modules from backup to new one? Do I have to adjust sites/default/settings.php with the new connection?
I'm having this error now:
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/openscholar/includes/database.mysql.inc on line 329.
Comment #9
astral-1 commentedRichard,
do you mean a previous Drupal installation for other purposes than OS ?
No.
I've been testing drupal extensively, but have never installed Spaces_og before trying OS.
does it help you to help me?
Comment #10
ferdi commented@astral, #7 above is the answer to your question.
Comment #11
astral-1 commentedOk, i've read the comment from ferdi about the new installation.
What do you suggest?
Comment #12
rbrandon commentedThat should have fixed your issue. did you still have trouble after following his advice?
Comment #13
rolando.isidoro commentedHi,
I've tried to upgrade two OpenScholar installations from beta9 to beta11 on the same server and got mixed results. The 1st installation upgrade went smooth, but the 2nd one returned the following error:
I'm using PHP 5.2.6 on a Debian server.
UPDATE:
I've tried upgrading from beta9 to beta10 and all went fine. Going from beta10 to beta11 returned the same error.
BTW, the Recent Releases list on the OpenScholar download page led me in error, since version beta10 is not being shown, it seems like beta9 was the latest previous version.
Thanks in advance,
Rolando Isidoro
Comment #14
rolando.isidoro commentedHi,
any update on this issue?
Thanks in advance,
Rolando Isidoro
Comment #15
rbrandon commentedRolando,
Do you have the "Feeds Fast News" or "Feeds News" modules enabled? If these modules are enabled there may be a conflict since they define a content type with the same name as the scholar_reader's "feed" type. I would make sure that those are disabled and let me know if that does not fix the issue.
-Richard
Comment #16
rolando.isidoro commentedHi Richard, thanks for you quick reply and sorry for the delay, I was out on vacations for the last 3 weeks.
Regarding the modules you mentioned, I don't even have them in the modules list, my OpenScholar installation is a clean one without any additional modules installed. This way, the only active feeds related module I have are:
Any additional thoughts on this issue?
Thanks in advance,
Rolando Isidoro