1
Zap_English
Error on Localhost

I downloaded my site from the server to my localhost and I'm getting some errors which stop the site from running

Warning: Cache Engine file is not initialized in D:\xampp\htdocs\zec2\class\cache\xoopscache.php on line 179

Warning: Cache Engine file is not set in D:\xampp\htdocs\zec2\class\cache\xoopscache.php on line 137

Can someone tell me how to fix this?

XOOPS Version XOOPS 2.5.9-Beta2

2
Mamba
Re: Error on Localhost
  • 2020/12/30 17:05

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


There could be a mismatch between what your mainfile.php is pointing to in "XOOPS_VAR_PATH", and where your cache files are (they should be in /xoops_data/caches).
I would start there to make sure that they match...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

3
Zap_English
Re: Error on Localhost

You're right. I checked that and it was wrong. But I'm still getting errors

Warning: require(D:\xampp\htdocs\zec2\xoops_data\caches\data\secure.php): failed to open stream: No such file or directory in D:\xampp\htdocs\zec2\mainfile.php on line 68

Fatal error: require(): Failed opening required 'D:\xampp\htdocs\zec2\xoops_data\caches\data\secure.php' (include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\zec2\mainfile.php on line 68

4
Mamba
Re: Error on Localhost
  • 2020/12/31 7:46

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


You have again issue with the mainfile.php pointing to something that doesn't exist, in this case, the file secure.php

Normally, the "secure.php" file should be in:
/xoops_data/data/ folder
which in your case would be:
D:\xampp\htdocs\zec2\xoops_data\data\secure.php

But the mainfile.php points to
"D:\xampp\htdocs\zec2\xoops_data\caches\data\secure.php"
which is the wrong location.

The location is defined in mainfile.php as:
require XOOPS_VAR_PATH '/data/secure.php';


But you seem to define the XOOPS_VAR_PATH as

define('XOOPS_VAR_PATH', 'D:\xampp\htdocs\zec2\xoops_data\caches\');

while it should be defined as:

define('XOOPS_VAR_PATH', 'D:\xampp\htdocs\zec2\xoops_data');


So in order to keep things consistent with XOOPS standards, I would suggest to change it back to that, and then move the cache folders to D:\xampp\htdocs\zec2\xoops_data\caches\
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
Zap_English
Re: Error on Localhost

THe path was originally XOOPS_VAR_PATH', 'D:\xampp\htdocs\zec2\xoops_data

but you said it should be /xoops_data/caches

and secure.php is in D:\xampp\htdocs\zec2\xoops_data\data\secure.php

And the cache folders are in D:\xampp\htdocs\zec2\xoops_data\caches\

6
Zap_English
Re: Error on Localhost

So I changed it back and now I get
Warning: Cache Engine file is not initialized in D:\xampp\htdocs\zec2\class\cache\xoopscache.php on line 179

Warning: Cache Engine file is not set in D:\xampp\htdocs\zec2\class\cache\xoopscache.php on line 137

here's all the paths

XOOPS_ROOT_PATH', 'D:\xampp\htdocs\zec2
XOOPS_PATH', 'D:\xampp\htdocs\zec2\xoops_lib
XOOPS_VAR_PATH', 'D:\xampp\htdocs\zec2\xoops_data
XOOPS_URL', '/localhost/zec2
XOOPS_VAR_PATH . '\data\secure.php

7
Mamba
Re: Error on Localhost
  • 2020/12/31 8:29

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


Resized Image


Your cache folders should be under /xoops_data/caches/

If they are, but you're getting errors, you might also check if they are writable, i.e. if they have 777 status on Linux, or on Windows they are not set to "Read-only"
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

8
Zap_English
Re: Error on Localhost

You're right, they were read only so I changed them all but I'm still getting

Warning: Cache Engine file is not initialized in D:\xampp\htdocs\zec2\class\cache\xoopscache.php on line 179

Warning: Cache Engine file is not set in D:\xampp\htdocs\zec2\class\cache\xoopscache.php on line 137

9
Mamba
Re: Error on Localhost
  • 2020/12/31 11:39

  • Mamba

  • Moderator

  • Posts: 11256

  • Since: 2004/4/23


Since I don't have access to it, I can only guess...

Another way to make it work is to:

a) make a fresh installation of XOOPS 2.5.9-Beta2, and make sure that it works (let's call it Z3)
b) copy all the extra modules from Zec2 to this Z3 installation
c) import the database from your Zec2 installation to your local MySQL (by using, for example, phpMyAdmin)
d) in your Z3 installation, go to /xoops_data/data/
and make a backup of the file secure.php
e) in the Z3's secure.php replace the values for the Z3 database to the values of your imported Zec2 database (i.e. XOOPS_DB_PREFIX, XOOPS_DB_USER, XOOPS_DB_PASS, XOOPS_DB_NAME)

See if this would work for you....
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

10
Zap_English
Re: Error on Localhost

Error : mysql extension not loaded

what does that mean?

Login

Who's Online

71 user(s) are online (42 user(s) are browsing Support Forums)


Members: 0


Guests: 71


more...

Donat-O-Meter

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

Latest GitHub Commits