English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

AlphaUserPoints extension compatibility error
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: AlphaUserPoints extension compatibility error
#9297
Re:AlphaUserPoints extension compatibility error 12 Years, 2 Months ago Karma: 0
update

May be I found something interesting.
it may be a joomla 2.51 incompatibility

after some "rude/primitive" debugging
I saw that AUP synch.php includes "admin/includes/framework.php"
this file contains the following code

/*
* Installation check, and check on removal of the install directory.
*/
if (!file_exists(JPATH_CONFIGURATION.'/configuration.php') || (filesize(JPATH_CONFIGURATION.'/configuration.php') < 10) || file_exists(JPATH_INSTALLATION.'/index.php')) {
header('Location: ../installation/index.php');
exit();
}

I guess it quits because of the presence of the index.php
that joomla 2.51 doesn't likes.

________________________
Update 2

yes it is:I rewrote the line without the index.php check
and now it works

Idon't know if it is a bad jms installation or something wrong on my site
or actually a Joomla incompat
alforau
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2012/02/15 19:01 By alforau.
The administrator has disabled public write access.
 
#9312
Re:AlphaUserPoints extension compatibility error 12 Years, 2 Months ago Karma: 0
Please I need at least a quick temporary reply
(read the previous post)

I found that 2 joomla 2.51 files
root/admin/includes/framework.php
and root/includes/framework.php
have inside a check on the presence of the "installation" directory

If I delete the index.php checking
the problem is solved
but I am not sure
if I found really the source of the problem
or it is something wrong with the site
alforau
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9361
Re:AlphaUserPoints extension compatibility error 12 Years, 2 Months ago Karma: 54
I have debugged the Alpha User point and found the bug in the alpha user point.

The bug is located in the
administrator\components\com_alphauserpoints\assets\synch\synch.php

They does not perform a correct joomla 1.7/2.5 initialization.

You must replace the code at the begining of the file

--- Bad code ---
define( '_JEXEC', 1 );
if (stristr( $_SERVER['SERVER_SOFTWARE'], 'win32' )) {
define( 'JPATH_BASE', realpath(dirname(__FILE__).'\..\..\..\..' ));
} else define( 'JPATH_BASE', realpath(dirname(__FILE__).'/../../../..' ));

define( 'DS', DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE.DS.'includes'.DS.'defines.php' );





Please report the bug to Alpha User Point with the fix that must be put in the file.

--- Replaced by good initialisation (standard joomla 1.7/2.5 initialization) ----
define( '_JEXEC', 1 );

define('DS', DIRECTORY_SEPARATOR);

if (file_exists( dirname( dirname( dirname( dirname( dirname(__FILE__))))) .DS. 'defines.php')) {
include_once dirname( dirname( dirname( dirname( dirname(__FILE__))))) .DS. 'defines.php';
}

if (!defined('_JDEFINES')) {
define('JPATH_BASE', dirname( dirname( dirname( dirname( dirname(__FILE__))))));
require_once JPATH_BASE.'/includes/defines.php';
}
File Attachment:
File Name: synch-20120219.txt
File Size: 6416
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2012/02/19 17:08 By edwin2win.
The administrator has disabled public write access.
 
#9369
Re:AlphaUserPoints extension compatibility error 12 Years, 2 Months ago Karma: 0
alforau
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla