Is this a first attempt to upgrade the database, or did you try to run the upgrade again after an earlier failure?
If this is the command-line upgrade tool, could you post the full output of the upgrade command? If you’re using the web-based upgrade tool, and have access to the command-line one, could you try the command-line upgrade?
Regards,
Alec Smecher
Public Knowledge Project Team
Would someone experiencing this problem be willing to send me a copy of their database, taken prior to the upgrade attempt? If so, please send me a private message.
Thanks,
Alec Smecher
Public Knowledge Project Team
This is the full output of the upgrade command from the command line:
PHP Warning: Use of undefined constant SCHEMA_PUBLICATION - assumed ‘SCHEMA_PUB LICATION’ (this will throw an Error in a future version of PHP) in /home/journal /public_html/lib/pkp/includes/functions.inc.php on line 223
PHP Warning: Use of undefined constant SCHEMA_PUBLICATION - assumed ‘SCHEMA_PUB LICATION’ (this will throw an Error in a future version of PHP) in /home/journal /public_html/lib/pkp/includes/functions.inc.php on line 223
PHP Warning: Creating default object from empty value in /home/journal/public_h tml/classes/plugins/PubObjectsExportPlugin.inc.php on line 62
[pre-install]
[load: upgrade.xml]
[version: 3.2.0.0]
hello asmecher,
i have run the above sql querry. It didn’t work for me.
is there some unskillful way for me?
This is the error message from phpmy admin:
Hata
Sabit çözümleme:
Çözümleme sırasında 1 hata bulundu.
Tanınmayan ifade türü. (near “sql” at position 1)
SQL sorgusu:
INSERT INTO email_templates_settings (email_id, locale, setting_value, setting_name) SELECT email_id, locale, subject, ‘subject’ FROM email_templates_data INSERT INTO email_templates_settings (email_id, locale, setting_value, setting_name) SELECT email_id, locale, body, ‘body’ FROM email_templates_data
MySQL çıktısı:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<sql> <query> INSERT INTO email_templates_settings (email_id, locale, setti' at line 1
Can you clarify what the issue is that you’re trying to resolve, and what release of OJS you’re working with?
I think the immediate problem is that you’re trying to execute the XML as SQL, but before working around that – I don’t think the above SQL was intended to resolve the problem.
Regards,
Alec Smecher
Public Knowledge Project Team
No. I didn’t restore old database backup
Since it seems worked, I left as is.
But some plugins, such as crossref export, cannot be upgraded, but still works.
Uh oh, I’m afraid that’s a bit of a problem. When your upgrade failed, it left your database halfway between OJS 3.1.2 and 3.2. Only the error message can tell you how far it got. The error you’re encountering now is happening because the upgrade script is trying to execute an upgrade step that’s already been executed. See Issue in upgrading OJS 2.4 to OJS 3.x - #46 by asmecher for more information on this situation. You should always restore from backup after a failed upgrade.
Regards,
Alec Smecher
Public Knowledge Project Team