Jump to content

Recommended Posts

Posted

Buna Ziua / Seara

Am si eu o problema .. am incarcat sa instaelz  platforma Joomla 2,5 si dupa ce sa terminat de instalat  imi apare asa fel de erroare

In Admin CP pot intra fara probleme dar cind pe site apare asa 

Fatal error: Class 'GFactory' not found in /home/u611290918/public_html/components/com_listbingo/listbingo.php on line 2

 

Scriptul din fisierul listbingo.php

<?php
$params= GFactory::get('site::com.listbingo.helper.configuration')->getParams();

$namespace='com_listbingo';
if($params->get('core_share_location',0))
{
	$namespace='com_gobingoo';
}

$current_location =  GFactory::get('lib.joomla.session')->get('current_location',false,$namespace);
 
	if($params->get('core_auto_detect_location') == 1)
	{
		
		if(!$current_location)
		{

ob_start();
?>


function success(position)
{
	var lattitude = position.coords.latitude;
	var longitude = position.coords.longitude;
	gb.ajax.get({		
				url:"index.php?option=com_listbingo&view=ajax&action=setCurrentLocation&format=ajax",
				data:'lat='+lattitude+'&lng='+longitude,
				datatype:'json',
				callbackformat:'object',
				callback:function(){
					var data = this;					
					if(data.response == 'success')
					{
						location.reload(true);
					}					
				}			
			});
	
}


if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(success);
}

<?php
$content=ob_get_clean();
$document=JFactory::getDocument();
$document->addScriptDeclaration($content);
		}

	}
	else
	{
		if(GFactory::get('lib.joomla.session')->has('current_location',$namespace))
		{
			GFactory::get('lib.joomla.session')->clear('current_location',$namespace);
			GFactory::get('lib.joomla.session')->clear('current_country',$namespace);
			GFactory::get('lib.joomla.session')->clear('current_region',$namespace);
		}
		
	}


$errorlevel=$params->get('core_error_level');
if($errorlevel==1)
{
 error_reporting(1);
}
else 
{
 error_reporting(0);
}
$addon=JRequest::getCmd('addon','');
$view=JRequest::getCmd('view','ads');
GRequest::set('get.view',$view);

	$user = JFactory::getUser();
	$authorised = $user->authorise('core.manage', 'com_listbingo');	
		
	if ($authorised !== true) {
		JError::raiseError(403, JText::_('JERROR_ALERTNOAUTHOR'));
		return false;
	} 

try
{
    	GFactory::get('site::com.listbingo.addon.action.loader')->import();
 	GFactory::get('site::com.listbingo.addon.action.dispatcher')->triggerAction('onSystemStart');
    

if(!empty($addon))
{
	GRequest::set('get.addon',$addon);//new
	echo GFactory::get('site::com.listbingo.addon.dispatcher')->dispatch(GRequest::get('get.view', 'cmd', 'addon'));
	
	
}
else
{		
	echo GFactory::get('site::com.listbingo.dispatcher')->dispatch(GRequest::get('get.view', 'cmd', 'ads'));
}

    GFactory::get('site::com.listbingo.addon.action.dispatcher')->triggerAction('onSystemEnd');
}
catch(Exception $e)
{
	if(!$params->get('core_error_level'))
	{
		?>
		<div id="lb_main">
		<div class="lb_main_inner">
		
		<div class="lb_systemErrorInfo">
		<?php echo JText::_('COM_LISTBINGO_ERROR_PAGE');?>
		</div>
		
		</div>
		</div>
		<?php 
		
	}
	else
	{
		echo $e->getMessage();
		$trace=$e->getTrace();
		?><table width='100%' border='0'><?php
		foreach($trace as $t)
		{
			?>
			<tr>
			<?php 
			foreach($t as $x)
			{
				?>
				<td><?php echo $x;?></td>
				<?php 
				
			}
			?>
			</tr>
			<?php 
			
		}
		?>
		</table>
		<?php 
	}
	
}

Ma poate ajuta cineva sa rezolv aceasta problema . Multumesc !!!

  • Moderators
Posted

Probabil nu gaseste clasa acea sau nu are acces la ea. Limite chmod sau altele de la host.

De unde ai descarcat Joomla? Daca nu l-ai descarcat de aici: http://www.joomla.org/download.html

PS: Nu recomand versiunea 2.5 pentru ca pur si simplu nu mai exista niciun fel de suport catre versiunea aia.

PHP Developer - Not available for freelancing right now

Daca ai de gand sa postezi la categoria IPB, nu uita sa citesti regulamentul: Link regulament

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.