RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 04, 2008, 08:32:38 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  RSgallery2 bugs & problems (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Blank Frontend with RS2 and J1.5.7
Advanced search
  « previous next »
Pages 1
Author
Topic: Blank Frontend with RS2 and J1.5.7  (Read 782 times)
« on: September 28, 2008, 10:10:34 am »
Nikkie Offline
Newbie
*
Posts: 2



Everything seems fine with creating a single parent gallery and uploading photos using RS2 and J1.5.7 yet the frontend renders a blank page in both FF and IE with no HTML at all. 

Debug modes give no indication of anything.  This would seem to be a huge problem yet I don't see anyone else mentioning it here. 

Would anyone have a suggestion as to what to look for or what to try next?
Logged
 
Reply #1
« on: September 28, 2008, 11:18:25 am »
Nikkie Offline
Newbie
*
Posts: 2



I looked through the code and the main intialization file (administrator/components/com_rsgallery2/init.rsgallery2.php) seems incomplete.  Notice it doesn't contain a php closing tag (?>), which seems highly irregular.  Additionally, tracing through the code there doesn't seem to be any function that is called to actually begin rendering the frontend component.  I checked the original zip download and the file is the same so it wasn't corrupted during installation.  Does anyone have a different init.rsgallery2.php file?

<?php
/**
* This file handles the initialization required for core functionality.
* @version $Id$
* @package RSGallery2
* @copyright (C) 2003 - 2006 RSGallery2
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* RSGallery is Free Software
*/
defined( '_JEXEC' ) or die( 'Access Denied.' );

// create global variables in case we are not in the global scope.
global $rsgConfig, $rsgAccess, $rsgVersion, $rsgOption, $mainframe ;


//Set path globals for RSGallery2
define('JPATH_RSGALLERY2_SITE', JPATH_ROOT. DS .'components'. DS . 'com_rsgallery2');
define('JPATH_RSGALLERY2_ADMIN', JPATH_ROOT. DS .'administrator' . DS . 'components' . DS . 'com_rsgallery2');
define('JPATH_RSGALLERY2_LIBS',JPATH_ROOT. DS . 'components' . DS . 'com_rsgallery2' . DS . 'lib');

$app =JFactory::getApplication();
define('JURI_SITE', $app->isSite() ? JURI::base() : $mainframe->getSiteURL());

// check if this file has been included yet.
if( isset( $rsgConfig )) return;

// initialize the rsg config file
require_once(JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'config.class.php');
$rsgConfig = new rsgConfig();

//Set image paths for RSGallery2
define('JPATH_ORIGINAL', JPATH_ROOT . str_replace('/', DS , $rsgConfig->get('imgPath_original')) );
define('JPATH_DISPLAY', JPATH_ROOT. str_replace('/', DS , $rsgConfig->get('imgPath_display')) );
define('JPATH_THUMB', JPATH_ROOT. str_replace('/', DS , $rsgConfig->get('imgPath_thumb')) );
define('JPATH_WATERMARKED', JPATH_ROOT. str_replace('/', DS , $rsgConfig->get('imgPath_watermarked')) );

$rsgOptions_path = JPATH_RSGALLERY2_ADMIN .DS. 'options' .DS;
$rsgClasses_path = JPATH_RSGALLERY2_ADMIN .DS. 'includes' . DS;
   
require_once(JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'version.rsgallery2.php');
$rsgVersion = new rsgalleryVersion();

//include ACL class
require_once(JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'access.class.php');
$rsgAccess = new rsgAccess();

// include rsgInstance
require_once(JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'instance.class.php');

// require file utilities
require_once( JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'file.utils.php' );
require_once( JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'img.utils.php' );
require_once( JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'audio.utils.php' );
require_once( JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'items' . DS .'item.php' );

// contains misc. utility functions
require_once(JPATH_RSGALLERY2_ADMIN . DS . 'config.rsgallery2.php');
require_once(JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'gallery.manager.php');
require_once(JPATH_RSGALLERY2_ADMIN . DS . 'includes' . DS . 'gallery.class.php');
require_once(JPATH_RSGALLERY2_LIBS . DS . 'rsgcomments' . DS . 'rsgcomments.class.php');
require_once(JPATH_RSGALLERY2_LIBS . DS . 'rsgvoting' . DS . 'rsgvoting.class.php');


Logged
 
Print  Pages 1
« previous next »
Jump to: