2361
stonez
Re: Internal Error - Upgrade from 2.3.3b to 2.5.8
  • 2018/11/10 23:01

  • stonez

  • Just popping in

  • Posts: 16

  • Since: 2002/9/29


Hi Geekwright ,
Thank you for the reply!
Let me try to see any of that command was used in the code first!

Will get back to you soon.

Best regards,
Stonez



2362
geekwright
Re: Internal Error - Upgrade from 2.3.3b to 2.5.8

The most likely cause of the error is some code in an old module which includes the phrase:
=& new

An example of this would look something similar to:
$object =& new ClassName();


That syntax was deprecated in PHP 5, but is now an error in PHP 7. The "=&' is assigning a value by reference, but the return of "new" is already a reference. Remove the "&" and that should fix it.

It would be worth checking to see if any PHP 7 ready upgrades are available for any modules you may be using.



2363
stonez
Internal Error - Upgrade from 2.3.3b to 2.5.8
  • 2018/11/10 4:00

  • stonez

  • Just popping in

  • Posts: 16

  • Since: 2002/9/29


Hi there,
I have an old website built with Xoops 2.3.3b and customized theme and module.
Recently, I would like to upgrade Xoops 2.3.3b to 2.5.9 to be able to use with PHP 7.2.11
Environment:
OS: Linux
Apache: 2.0
PHP: 7.2.11
MySQL: 5.0.12
Xoops: 2.3.3b upgrade to 2.5.9

I was able to execute to this step:
Resized Image


When I was ready to update old modules, it showed this error message:
Resized Image


Where should I start to debug?
What settings should look into? xoops_data/data/secure.php xoops/html/mainfile.php or others?

Thank you!
Stonez



2364
Mamba
Re: xfGuestbook for XOOPS 2.5.9, PHP7
  • 2018/11/5 10:52

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Please test the 3.21 Beta 1 - I hope, these bugs are now fixed
https://github.com/mambax7/xfguestbook

Hopefully I didn't introduce some new bugs there...

Tested on PHP 7.2.11
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



2365
kakos
Re: Xoops restore problem
  • 2018/10/29 11:17

  • kakos

  • Friend of XOOPS

  • Posts: 77

  • Since: 2002/6/6 2


When you migratate a xoops site, you should update some options in mainfile.php.

define('XOOPS_ROOT_PATH', '/path/to/xoosROOT');

define('XOOPS_PATH', '/path/to/xoops_lib');

define('XOOPS_VAR_PATH', '/path/to/xoops_data');

define('XOOPS_URL', 'http://mydomain_OR_ip');

xoops_lib and xoops_data (do not forget this directories) by default located in the root folder but it is recommended to move out of the root.

If there are changes to the database (host dbname user etc), the xoops_data/data/secure.php should be updated with these.

If this is a public site it is useful to give us a domain.

Costas



2366
kavehj
Re: Xoops restore problem
  • 2018/10/29 6:05

  • kavehj

  • Just popping in

  • Posts: 3

  • Since: 2018/10/17


<?php
// $Id: mainfile.dist.php,v 1.7.6.3 2005/05/21 15:38:20 mithyt2 Exp $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// <http://www.xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// 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. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //

if ( !defined("XOOPS_MAINFILE_INCLUDED") ) {
define("XOOPS_MAINFILE_INCLUDED",1);

// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_ROOT_PATH', 'D:/eorg/sha');
define('XOOPS_ROOT_PATH', '/sha');

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://eorg.ut.ac.ir/sha');
define('XOOPS_URL', 'xxxx');

define('XOOPS_CHECK_PATH', '1');
// 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.");
}
}

// Database
// Choose the database to be used
define('XOOPS_DB_TYPE', 'mysql');

// Table Prefix
// This prefix will be added to all new tables created to avoid name conflict in the database. Please change this to something different than 'xoops'.
define('XOOPS_DB_PREFIX', 'xxxx');

// Database Hostname
// Hostname of the database server. If you are unsure, 'localhost' works in most cases.
define('XOOPS_DB_HOST', 'localhost');

// Database Username
// Your database user account on the host
define('XOOPS_DB_USER', 'xxxx');

// Database Password
// Password for your database user account
define('XOOPS_DB_PASS', 'xxxx');

// Database Name
// The name of database on the host. The installer will attempt to create the database if not exist
define('XOOPS_DB_NAME', 'xxxx');

// Use persistent connection? (Yes=1 No=0)
// Default is 'No'. Choose 'No' if you are unsure.
define('XOOPS_DB_PCONNECT', '0');

define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');

//uncomment this after installing protector module
//include(XOOPS_ROOT_PATH.'/modules/protector/include/precheck.inc.php');
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
require XOOPS_ROOT_PATH."/include/common.php";
}
//uncomment this after installing protector module
//include(XOOPS_ROOT_PATH.'/modules/protector/include/postcheck.inc.php');
}
?>



2367
kavehj
Xoops restore problem
  • 2018/10/29 6:03

  • kavehj

  • Just popping in

  • Posts: 3

  • Since: 2018/10/17


Hello
I had a website which designed by Xoops. I have restore it's backup files on a new server.
When i want to visit it in browser, i see this error:
XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run.

I have changed mainfile.php. Currently this file's codes are like next post (I changed sensitive information to xxxx)





I have searched and found some solution, but none of them worked for me. These solutions were:
1: Change
define('XOOPS_CHECK_PATH', '1');
to:
define('XOOPS_CHECK_PATH', '0');

After doing this, this messade:
"XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run."
disappears. But the page can not load and i see "HTTP ERROR 500".

2: I have tried this solution too:
https://github.com/XoopsDocs/xoops-2.5.9-install-upgrade/tree/master/en/book/moving

But i can not run srdb on my website. When i want to load srdb, i see this error again.

How can i solve this problem?



2368
nendo
Re: Problem frxoops.org site ?
  • 2018/10/27 17:48

  • nendo

  • Just popping in

  • Posts: 7

  • Since: 2013/3/31


Thanks Cesagonchu for the information
Good night



2369
Cesagonchu
Re: Problem frxoops.org site ?

Cédric is working on it. He hosts the frxoops site. He has several servers and websites to put back online.

Cédric is black_beard on xoops.org:

https://xoops.org/modules/profile/userinfo.php?uid=134195

---

Cédric travaille dessus. Il héberge le site frxoops. Il a plusieurs serveurs et sites internet à remettre en ligne.

https://www.facebook.com/frxoops/posts/2064853653566569



2370
wishcraft
Re: XOOPS as an MVC is not an XOO + OOP Classes/Include Structure would only be MVCPS.coop

The reason XOO + OOP is so popular with a /class /include structure in not only PHP, but c++, C Ansi, Perl, Java etc, is the code is transpositional and will become when routed external like on sourceforge.net into someone else gravity well meter maid; the language constructs for their systems, not many MVC do this they are earth specific!




TopTop
« 1 ... 234 235 236 (237) 238 239 240 ... 29422 »



Login

Who's Online

186 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

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

Latest GitHub Commits