11
m0nty
Re: Getting my hacks and database back?
  • 2005/1/25 13:14

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


make sure templates_c is writable!!

Quote:
This time I didnt create a new database beforehand but just imported the sql file because otherwise it would sometimes tell me database xxx already exists. Everything went perfect too until the XOOPS installation reached the database check and it said "Tables for XOOPS2 already exist in your database" -.- So its #1 set up database #2 install XOOPS #3 restore db? But then I'll have to use another backup cause that specific file seems to have a create db command included... im so lost


that's not entirely the right way to migrate..

because you are importing all your tables from before, the database will already be created.. so in essence there's no need whatsoever to go thru the XOOPS installation procedure.. just copy mainfile.php from your old site to your new site, and edit the relevant sections inside it such as db name, username, password, host and the paths.. and that should then work..

12
Skythe
Re: Getting my hacks and database back?
  • 2005/1/26 14:51

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Quote:

m0nty wrote:
make sure templates_c is writable!!

Quote:
This time I didnt create a new database beforehand but just imported the sql file because otherwise it would sometimes tell me database xxx already exists. Everything went perfect too until the XOOPS installation reached the database check and it said "Tables for XOOPS2 already exist in your database" -.- So its #1 set up database #2 install XOOPS #3 restore db? But then I'll have to use another backup cause that specific file seems to have a create db command included... im so lost


that's not entirely the right way to migrate..

because you are importing all your tables from before, the database will already be created.. so in essence there's no need whatsoever to go thru the XOOPS installation procedure.. just copy mainfile.php from your old site to your new site, and edit the relevant sections inside it such as db name, username, password, host and the paths.. and that should then work..


Okay I just now emptied the local XOOPS folder, copied the old XOOPS directory in there, changed the mainfile.php and restored the db backup.

Now I'm getting the Fatal error: Class 'XoopsTpl' not found in header.php on line 63 again.

Could the mainfile be wrong? Maybe the the physical / virtual path...

The thing is I'm running a Xampp server here, and the path on my harddisk is \htdocs\MySite. The virtual and physical paths would then both be http://localhost/MySite, right?

13
Dave_L
Re: Getting my hacks and database back?
  • 2005/1/26 17:54

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
... The thing is I'm running a Xampp server here, and the path on my harddisk is \htdocs\MySite. The virtual and physical paths would then both be http://localhost/MySite, right?


No. The virtual path is a URL, and the physical path is a file system path.

I'm also using XAMPP. In my case, the paths are:

define('XOOPS_ROOT_PATH''D:/localhost/htdocs/xoops');
define('XOOPS_URL''http://localhost/xoops');

14
Skythe
Re: Getting my hacks and database back?
  • 2005/1/26 21:48

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


Ahh. Strange that this incorrect path works just alright with my 2.0.x XOOPS just not the backup

Okay fixed that. Now I'm getting lotsa errors

Quote:
Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\logger.php on line 51

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\logger.php on line 52

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\logger.php on line 53

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\logger.php on line 54

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\logger.php on line 55

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\errorhandler.php on line 171

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\database\databasefactory.php on line 30

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\database\databasefactory.php on line 59

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\errorhandler.php on line 171

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\database\mysqldatabase.php on line 61

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\database\database.php on line 59

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\database\database.php on line 65

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\errorhandler.php on line 171

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \kernel\object.php on line 72

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \kernel\object.php on line 80

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \kernel\object.php on line 88

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \kernel\object.php on line 96

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \kernel\object.php on line 104

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \kernel\object.php on line 111

Parse error: syntax error, unexpected T_CLONE, expecting T_STRING in \kernel\object.php on line 528

Warning: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 4 in \class\errorhandler.php on line 171

15
Skythe
Re: Getting my hacks and database back?
  • 2005/1/28 15:42

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


monty / seymore? any idea what could be wrong?

16
jdseymour
Re: Getting my hacks and database back?

It has something to do with Perl compatible regular expression search and replace. Not sure what that means just an indication of what the errors are complaining about. Any PHP programers got any idea?

17
Dave_L
Re: Getting my hacks and database back?
  • 2005/1/28 17:17

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I did a web search on that error message. I couldn't find anything conclusive, but it looks like it may be a PHP5 or a Zend issue.

Skythe:

Look at the output from
() ?>
and post your PHP version and your Zend Engine version.

18
Skythe
Re: Getting my hacks and database back?
  • 2005/1/28 18:50

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


PHP 5.0.3
Zend 2.0.3

19
Skythe
Re: Getting my hacks and database back?
  • 2005/1/30 17:56

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


so?

20
Dave_L
Re: Getting my hacks and database back?
  • 2005/1/30 19:00

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7



Login

Who's Online

404 user(s) are online (342 user(s) are browsing Support Forums)


Members: 0


Guests: 404


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits