News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Problem with joomla1.0.7+SMF1.1RC2+bridge1.1.3+ZoomMG 251rc1(lightbox)

Started by Valc, April 15, 2006, 09:26:30 AM

Previous topic - Next topic

Valc

Hi from Mallorca :)
I has been a long time without write in english. I hope you can understand what try to say.
Well, the problem is the next..
When i try to use de lightbox whith my images, i read this error:

Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition lightbox of the object you are trying to operate on was loaded _before_ the session was started in /home/xxxxxx/public_html/components/com_zoom/www/lightbox.php on line 66

I have been looking for in internet people whit the same problem:
Some people say the problem is solved if you put some "/" in the lightbox code and others say than this work again if you erase some lines in index.php.

But i dont want to touch nothing before you answer me.
¿Know you what happen whit this one?
This is the web site:
http://assalamo-alaikum.com [nofollow]

And the link to Zoom Media gallery is in "Colección de imágenes"

Thanks for everything. You are doing a big job and with this new bridge version i could solve a lot of conflicts :)
Valc

Orstio

If the lightbox code needs to be called before the session is started, then it will need to either go in a system mambot, and be published before the SMF_Headerbot, or if I'm correct about Zoom gallery, it inserts code into the Joomla index.php, which will need to be inserted before the call to the system mambots.

Valc

Quote from: Orstio on April 15, 2006, 09:33:30 AM
If the lightbox code needs to be called before the session is started, then it will need to either go in a system mambot, and be published before the SMF_Headerbot, or if I'm correct about Zoom gallery, it inserts code into the Joomla index.php, which will need to be inserted before the call to the system mambots.
Hey! you answerme very fast!!. Thanks

I belive to understand....
Know you how can i publish this one before?
If i unistall the bridge and when finish, reinstall again..this one makes the SMF_headerbot apears after zoom gallery?

Here there are my index.php, i have been looking for "zoom" or "lightbox" or "ZMG" and not found lines. Maybe you, than Know more, can found :) :

<?php/*** @version $Id: index.php 1838 2006-01-15 14:01:27Z stingrey $* @package Joomla* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php* Joomla! is free software. This version may have been modified pursuant* to the GNU General Public License, and as distributed it includes or* is derivative of works licensed under the GNU General Public License or* other free or open source software licenses.* See COPYRIGHT.php for copyright notices and details.*/// Set flag that this is a parent filedefine( '_VALID_MOS', 1 );// checks for configuration file, if none found loads installation pageif (!file_exists( 'configuration.php' ) || filesize( 'configuration.php' ) < 10) { $self = str_replace( '/index.php','', $_SERVER['PHP_SELF'] ). '/'; header("Location: http://" . $_SERVER['HTTP_HOST'] . $self . "installation/index.php" ); exit();}include_once( 'globals.php' );require_once( 'configuration.php' );require_once( 'includes/joomla.php' );//Installation sub folder check, removed for work with SVNif (file_exists( 'installation/index.php' )) { define( '_INSTALL_CHECK', 1 ); include ('offline.php'); exit();}// displays offline/maintanance page or barif ($mosConfig_offline == 1) { require( 'offline.php' );}// load system bot group$_MAMBOTS->loadBotGroup( 'system' );// trigger the onStart events$_MAMBOTS->trigger( 'onStart' );if (file_exists( 'components/com_sef/sef.php' )) { require_once( 'components/com_sef/sef.php' );} else { require_once( 'includes/sef.php' );}require_once( 'includes/frontend.php' );// retrieve some expected url (or form) arguments$option = trim( strtolower( mosGetParam( $_REQUEST, 'option' ) ) );$Itemid = intval( mosGetParam( $_REQUEST, 'Itemid', null ) );if ($option == '') { if ($Itemid) { $query = "SELECT id, link" . "\n FROM #__menu" . "\n WHERE menutype = 'mainmenu'" . "\n AND id = '$Itemid'" . "\n AND published = '1'" ; $database->setQuery( $query ); } else { $query = "SELECT id, link" . "\n FROM #__menu" . "\n WHERE menutype = 'mainmenu'" . "\n AND published = 1" . "\n ORDER BY parent, ordering LIMIT 1" ; $database->setQuery( $query ); } $menu = new mosMenu( $database ); if ($database->loadObject( $menu )) { $Itemid = $menu->id; } $link = $menu->link; if (($pos = strpos( $link, '?' )) !== false) { $link = substr( $link, $pos+1 ). '&Itemid='.$Itemid; } parse_str( $link, $temp ); /** this is a patch, need to rework when globals are handled better */ foreach ($temp as $k=>$v) { $GLOBALS[$k] = $v; $_REQUEST[$k] = $v; if ($k == 'option') { $option = $v; } }}if ( !$Itemid ) {// when no Itemid give a default value $Itemid = 99999999;}// mainframe is an API workhorse, lots of 'core' interaction routines$mainframe = new mosMainFrame( $database, $option, '.' );$mainframe->initSession();// trigger the onAfterStart events$_MAMBOTS->trigger( 'onAfterStart' );// checking if we can find the Itemid thru the contentif ( $option == 'com_content' && $Itemid === 0 ) { $id = intval( mosGetParam( $_REQUEST, 'id', 0 ) ); $Itemid = $mainframe->getItemid( $id );}/** do we have a valid Itemid yet?? */if ( $Itemid === 0 ) { /** Nope, just use the homepage then. */ $query = "SELECT id" . "\n FROM #__menu" . "\n WHERE menutype = 'mainmenu'" . "\n AND published = 1" . "\n ORDER BY parent, ordering" . "\n LIMIT 1" ; $database->setQuery( $query ); $Itemid = $database->loadResult();}// patch to lessen the impact on templatesif ($option == 'search') { $option = 'com_search';}// loads english language file by defaultif ($mosConfig_lang=='') { $mosConfig_lang = 'english';}include_once( 'language/' . $mosConfig_lang . '.php' );// frontend login & logout controls$return = mosGetParam( $_REQUEST, 'return', NULL );$message = mosGetParam( $_POST, 'message', 0 );if ($option == 'login') { $mainframe->login(); // JS Popup message if ( $message ) { ?>
<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo _LOGIN_SUCCESS; ?>" );
//-->
</script>
<?php } if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) { // checks for the presence of a return url // and ensures that this url is not the registration or login pages mosRedirect( $return ); } else { mosRedirect( $mosConfig_live_site .'/index.php' ); }} else if ($option == 'logout') { $mainframe->logout(); // JS Popup message if ( $message ) { ?>
<script language="javascript" type="text/javascript">
<!--//
alert( "<?php echo _LOGOUT_SUCCESS; ?>" );
//-->
</script>
<?php } if ( $return && !( strpos( $return, 'com_registration' ) || strpos( $return, 'com_login' ) ) ) { // checks for the presence of a return url // and ensures that this url is not the registration or logout pages mosRedirect( $return ); } else { mosRedirect( $mosConfig_live_site.'/index.php' ); }}/** get the information about the current user from the sessions table */$my = $mainframe->getUser();// detect first visit$mainframe->detect();// set for overlib check$mainframe->set( 'loadOverlib', false );$gid = intval( $my->gid );// gets template for page$cur_template = $mainframe->getTemplate();/** temp fix - this feature is currently disabled *//** @global A places to store information from processing of the component */$_MOS_OPTION = array();// precapture the output of the componentrequire_once( $mosConfig_absolute_path . '/editor/editor.php' );ob_start();if ($path = $mainframe->getPath( 'front' )) { $task = mosGetParam( $_REQUEST, 'task', '' ); $ret = mosMenuCheck( $Itemid, $option, $task, $gid ); if ($ret) { require_once( $path ); } else { mosNotAuth(); }} else { header("HTTP/1.0 404 Not Found"); echo _NOT_EXIST;}$_MOS_OPTION['buffer'] = ob_get_contents();ob_end_clean();initGzip();header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );header( 'Cache-Control: no-store, no-cache, must-revalidate' );header( 'Cache-Control: post-check=0, pre-check=0', false );header( 'Pragma: no-cache' );// display the offline alert if an admin is logged inif (defined( '_ADMIN_OFFLINE' )) { include( 'offlinebar.php' );}// loads template fileif ( !file_exists( 'templates/'. $cur_template .'/index.php' ) ) { echo _TEMPLATE_WARN . $cur_template;} else { require_once( 'templates/'. $cur_template .'/index.php' ); echo "<!-- ".time()." -->";}// displays queries performed for pageif ($mosConfig_debug) { echo $database->_ticker . ' queries executed'; echo '<pre>'; foreach ($database->_log as $k=>$sql) { echo $k+1 . "\n" . $sql . '<hr />'; }}doGzip();?>


Thanks :)

Orstio

QuoteIf i unistall the bridge and when finish, reinstall again..this one makes the SMF_headerbot apears after zoom gallery?

No.

Do you have a link to the Zoom Media Gallery so I can have a look?

Valc

Quote from: Orstio on April 15, 2006, 10:23:16 AM
QuoteIf i unistall the bridge and when finish, reinstall again..this one makes the SMF_headerbot apears after zoom gallery?

No.

Do you have a link to the Zoom Media Gallery so I can have a look?

Hi, again
Of curse, this is the link than i'm ussing:

http://assalamo-alaikum.com/index.php?option=com_zoom&Itemid=45 [nofollow]

Thanks :)

Orstio

Do you have a link to the Zoom Media Gallery download, so that I can download the Zoom Media Gallery and look at the PHP code?

Valc

Quote from: Orstio on April 15, 2006, 10:33:10 AM
Do you have a link to the Zoom Media Gallery download, so that I can download the Zoom Media Gallery and look at the PHP code?

This link is the nearest link from  download than i found, when accept, begins to download file:
http://www.zoomfactory.org/index.php?option=com_docman&task=docclick&Itemid=29&bid=62&limitstart=0&limit=20 [nofollow]

The name of the file is:
zOOm Media Gallery 2.5.1 RC1
i acces from:
http://www.zoomfactory.org [nofollow]
- Main menu/ downloads
- Please select the category/ Joomla! 1.0.x AND Mambo 4.5.x Downloads
- documents in this categiry / zOOm Media Gallery 2.5.1 RC1

Thanks :)



Orstio

Thanks.  Yes, the SMF session will be started long before the lightbox script is loaded.

There are ways to solve this, but it would require some major coding.

Valc

Quote from: Orstio on April 15, 2006, 10:54:21 AM
Thanks.  Yes, the SMF session will be started long before the lightbox script is loaded.

There are ways to solve this, but it would require some major coding.
Okis then i will be waiting the solution, thanks for evrerythong, Orstio. :)

Advertisement: