The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jun 21, 2012 5:54 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jun 21, 2012 5:12 pm
Posts: 2
The other day, I turned on the SEF URL and it would not work because my site is in a sub folder. So I updated the code to make it work.
Code:
RewriteRule (.*) /site/index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section


Now my SEF URL works fine, but I cannot login to the admin page. When I type in http://www.MySiteName.com/site/administrator, it will allow me to type in my user name and password. But when I press the login button, I get this error.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /site/administrator/modules/mod_jcefilebrowser/mod_jcefilebrowser.php on line 5

I looked for line 5 of the PHP and this is what it says.
Code:
<?php
// no direct access
defined('_JEXEC') or die('Restricted access');

if (JComponentHelper::getComponent('com_jce', true)->enabled === false) {
   return;
}

jimport('joomla.application.component.model');

JModel::addIncludePath(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_jce' . DS . 'models');
$model = JModel::getInstance('model', 'WF');

// authorize
if (!$model->authorize('browser')) {
   return;
}

JHtml::_('behavior.modal');

require_once(JPATH_ADMINISTRATOR.'/components/com_jce/helpers/browser.php');

$language = JFactory::getLanguage();

$language->load('com_jce', JPATH_ADMINISTRATOR);

$document = JFactory::getDocument();
$document->addStyleSheet('components/com_jce/media/css/module.css');

$module = JModuleHelper::getModule('mod_jcefilebrowser');


Can someone please help me solve this problem. Thanks.


Last edited by mdog85 on Sat Jun 23, 2012 12:31 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Jun 23, 2012 12:30 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jun 21, 2012 5:12 pm
Posts: 2
I figured it out! :) It was weird. I kept reading that I needed to have PHP5 installed with my host. I could not figure it out because I did have PHP5 installed, but it still would not work. So I downgraded to PHP4, and re-upgraded to PHP5, and not it works. Crazy...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group