Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 - 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: XoopsPreload
by iHackCode on 2018/3/18 4:27:38

For Xoops 2.5.6
System requirements
-----------------------------------
PHP:
Any PHP version >= 5.3.7 (PHP 5.4+ is strongly recommended)

MySQL:
MySQL server 5.0+
Source: https://xoops.org/modules/news/article.php?storyid=6476

Try uploading the checksum.md5 and checksum.php files from the Xoops 2.5.6 package to verify your files are correct.
Quote:

Files integrity check
-----------------------------------

The full XOOPS package is released with a script able to check if all the system files have been correctly uploaded to the server. To use it, follow these instructions:

1. Upload the checksum.php and checksum.md5 files located in the XOOPS package root to your XOOPS server folder (putting them next to mainfile.php).
2. Execute checksum.php with your browser
3. If necessary, re-upload the missing or corrupted system files
4. Remove checksum.php and checksum.md5 from your server
Re: XoopsPreload
by goffy on 2018/3/17 7:07:46

Hi

I tried to reproduce the error:
if XOOPS_ROOT_PATH is wrong I get:
Quote:
Warning: include(C:/Homepages/wamp/www/naturfreunde/htdocs-wrongpath/include/common.php): failed to open stream: No such file or directory in C:\Homepages\wamp\www\naturfreunde\htdocs\mainfile.php on line 104

Quote:
Warning: include(): Failed opening 'C:/Homepages/wamp/www/naturfreunde/htdocs-wrongpath/include/common.php' for inclusion (include_path='.;C:\php\pear') in C:\Homepages\wamp\www\naturfreunde\htdocs\mainfile.php on line 104

Quote:
Fatal error: Class 'XoopsPreload' not found in C:\Homepages\wamp\www\naturfreunde\htdocs\index.php on line 31

if warning are turned off in php.ini you get only the fatal error.

If I am not sure whether the path is really ok I do following:
- create a folder on root (e.g. test)
- then uploading a new xoops
- installing
- checking mainfile.php, because then you see the path needed
Re: XoopsPreload
by geekwright on 2018/3/16 20:53:53

Does the file /home2/tshsp/public_html/include/common.php exist?
Re: XoopsPreload
by Mamba on 2018/3/16 20:52:19

Did you set the folder properties correctly?

Sometimes when you copy files to a folder, the group and owner don't match, i.e. the server assigns the folder to admin as a "root", and when you login as a user, the system can't see the files.

It happened to me couple of times

Make sure that all folders (like the /class folder) have the same group and owner as all the other folders.
Re: XoopsPreload
by vina on 2018/3/16 20:38:19

site was in old server in /home/
but site is in new server on /home2/
then I edited mainfile.php to thic change:

<?php /** * XOOPS main configuration file * * You may not change or alter any portion of this comment or credits * of supporting developers from this source code or any supporting source code * which is considered copyrighted (c) material of the original comment or credit authors. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) * @version $Id: mainfile.dist.php 5192 2010-09-06 09:00:36Z forxoops $ */ if (!defined("XOOPS_MAINFILE_INCLUDED")) { define("XOOPS_MAINFILE_INCLUDED", 1); // XOOPS Physical Paths // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash define('XOOPS_ROOT_PATH', '/home2/tshsp/public_html'); // For forward compatibility // Physical path to the XOOPS library directory WITHOUT trailing slash define('XOOPS_PATH', '/home2/tshsp/mylib'); // Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash define('XOOPS_VAR_PATH', '/home2/tshsp/mydata'); // Alias of XOOPS_PATH, for compatibility, temporary solution define("XOOPS_TRUST_PATH", XOOPS_PATH); // URL Association for SSL and Protocol Compatibility $http = 'http://'; if (!empty($_SERVER['HTTPS'])) { $http = ($_SERVER['HTTPS']=='on') ? 'https://' : 'http://'; } define('XOOPS_PROT', $http); // XOOPS Virtual Path (URL) // Virtual path to your main XOOPS directory WITHOUT trailing slash // Example: define('XOOPS_URL', 'http://www.tshsp.com'); define('XOOPS_URL', 'http://www.tshsp.com'); // Shall be handled later, don't forget! define("XOOPS_CHECK_PATH", 0); // Protect against external scripts execution if safe mode is not enabled if (XOOPS_CHECK_PATH && !@ini_get("safe_mode")) { if (function_exists("debug_backtrace")) { $xoopsScriptPath = debug_backtrace(); if (!count($xoopsScriptPath)) { die("XOOPS path check: this file cannot be requested directly"); } $xoopsScriptPath = $xoopsScriptPath[0]["file"]; } else { $xoopsScriptPath = isset($_SERVER["PATH_TRANSLATED"]) ? $_SERVER["PATH_TRANSLATED"] : $_SERVER["SCRIPT_FILENAME"]; } if (DIRECTORY_SEPARATOR != "/") { // IIS6 may double the chars $xoopsScriptPath = str_replace(strpos($xoopsScriptPath, "\\", 2) ? "\\" : DIRECTORY_SEPARATOR, "/", $xoopsScriptPath); } if (strcasecmp(substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace(DIRECTORY_SEPARATOR, "/", XOOPS_ROOT_PATH))) { exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run."); } } // Secure file require XOOPS_VAR_PATH . '/data/secure.php'; define('XOOPS_GROUP_ADMIN', '1'); define('XOOPS_GROUP_USERS', '2'); define('XOOPS_GROUP_ANONYMOUS', '3'); if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { include XOOPS_ROOT_PATH."/include/common.php"; } } if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { include XOOPS_ROOT_PATH."/include/common.php"; } else { global $xoops, $xoopsPreload; defined('DS') or define('DS', DIRECTORY_SEPARATOR); require_once XOOPS_ROOT_PATH . DS . 'class' . DS . 'xoopsload.php'; XoopsLoad::load('preload'); $xoopsPreload =& XoopsPreload::getInstance(); } ?>


but site have this problem yet!!

Who's Online

176 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

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

Latest GitHub Commits