Moderators: jmacgreg, michael, John, vgabler
1. In an isolated directory, decompress the archive.
2. Copy include/db.php from the old site directory to the new OJS directory
3. Copy any custom files from the old directory.
4. Move/rename your old site directory, replacing it with the new one.
5. Load http://yoursite.com/ojs/upgrade.php in a browser, and run the database upgrade for your old version.
Warning: Failed opening 'locale/en/user.inc.php' for inclusion (include_path='/home/ecowww/php_include:/home/ecowww/php_include/jpgraph:/home1/htdocs/mrbs') in /home1/htdocs/ojs/include/locale.inc.php on line 67
They key point seems to be that it must be a directory that doesn't have a subdirectory called "ojs", especially not one with a current OJS installation in it. Is that right?
Now here's the problem: that gets me lots of warnings from PHP, starting with
- Code: Select all
Warning: Failed opening 'locale/en/user.inc.php' for inclusion (include_path='/home/ecowww/php_include:/home/ecowww/php_include/jpgraph:/home1/htdocs/mrbs') in /home1/htdocs/ojs/include/locale.inc.php on line 67
What did I do wrong? (Seems like I need to copy over some more files from the old installation.)
diff -u -u -r1.37 upgrade.php
--- upgrade.php 11 Jun 2004 08:03:26 -0000 1.37
+++ upgrade.php 19 Jun 2004 21:04:44 -0000
@@ -58,6 +58,17 @@
}
+// so PHP < 4.1.0 can find include files
+if (!defined('ENV_SEPARATOR')) {
+ define('ENV_SEPARATOR', strtolower(substr(PHP_OS, 0, 3)) == 'win' ? ';' : ':');
+}
+ini_set("include_path", dirname(__FILE__) . ENV_SEPARATOR . ini_get("include_path"));
+
+
+// determine full path
+$fullpath = dirname(__FILE__) . "/";
+
+
// include common functions
require("include/functions.inc.php");Warning: Supplied argument is not a valid MySQL-Link resource in /home1/htdocs/ojs/include/db/db.mysql.inc.php on line 58
What version of OJS are you trying to upgrade from?
Sounds like your database connection settings in include/db.php are not correct.
If you edit include/db/db.mysql.inc.php and remove the "@" characters (e.g., changing "@mysql_pconnect" to "mysql_pconnect") you may get some more informative error output regarding why the database connection failed.
Warning: Access denied for user: 'root@localhost' (Using password: NO) in /home1/htdocs/ojs/include/db/db.mysql.inc.php on line 38kevin wrote:Are you sure you overwrote include/db.php in the new OJS with include/db.php from the old OJS?
Warning: Supplied argument is not a valid MySQL result resource in /home1/htdocs/ojs/include/db/db.mysql.inc.php on line 63
Warning: Supplied argument is not a valid MySQL result resource in /home1/htdocs/ojs/include/db/db.mysql.inc.php on line 63diff -u -r1.275 submissions.php
--- admin/editor/submissions.php 17 Feb 2004 03:29:41 -0000 1.275
+++ admin/editor/submissions.php 22 Jun 2004 03:26:16 -0000
@@ -272,9 +272,6 @@
$articlequery = $db->query($articlequery);
$num = $db->num_rows($articlequery);
-
- $issuequery = $db->query($issuequery);
- $numissuequery = $db->num_rows($issuequery);
$result = $db->query($fullquery);
$row = $db->assoc_array($result);Return to OJS Editorial Support and Discussion
Users browsing this forum: No registered users and 2 guests