Welcome, Guest
Username: Password: Remember me

TOPIC: error Multiple access type modifiers are not allow

error Multiple access type modifiers are not allow 3 years 4 months ago #409

  • josep
  • josep's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi
When I enable the module I get the following error:

Fatal error: Multiple access type modifiers are not allowed in /homepages/41/d465993432/htdocs/XXXX/components/com_jomclassifieds/etc/utils.php on line 125

I can help?
The administrator has disabled public write access.

error Multiple access type modifiers are not allow 3 years 4 months ago #411

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Kindly check whether you have double "public" in that line as posted in the below forum

www.getsymphony.com/discuss/issues/view/134/

If so, kindly remove one public and check.
The administrator has disabled public write access.
The following user(s) said Thank You: josep

error Multiple access type modifiers are not allow 3 years 4 months ago #412

  • josep
  • josep's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
This is the document I should delete?
<?php

/*
* @version $Id: utils.php 1.0.0 2013-02-15 $
* @package Joomla
* @copyright Copyright (C) 2013-2014 Jom Classifieds
* @license GNU/GPL www.gnu.org/licenses/gpl-2.0.html
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

class JomclUtils {

public static function getCfg($column = '*') {
$db = JFactory::getDBO();
$query = "SELECT ".$column." FROM #__jomcl_config WHERE id = 1";
$db->setQuery($query);
if($column === '*') {
$item = $db->loadObject();
} else {
$item = $db->loadResult();
}

return $item;
}

public static function getCurrentTime() {
return JHTML::_('date', 'now', 'Y-m-d H:i:s', false);
}

public static function getChildren($table, $ids) {
$db = JFactory::getDBO();
$ids = (array) $ids;
JArrayHelper::toInteger($ids);
$catid = array_unique($ids);
sort($ids);

$array = $ids;
while(count($array)){
$query = "SELECT id FROM #__jomcl_" . $table . " WHERE published=1 AND parent IN (".implode(',', $array).") AND id NOT IN (".implode(',', $array).") ";
$db->setQuery($query);
$array = $db->loadResultArray();
$ids = array_merge($ids, $array);
}

JArrayHelper::toInteger($ids);
$ids = array_unique($ids);

return $ids;
}

public static function getUnit() {
$db = JFactory::getDBO();
$query = "SELECT currency FROM #__jomcl_config WHERE id=1";
$db->setQuery($query);
$output = $db->loadRow();

return $output[0];
}

public static function castAsNumber($array) {
foreach($array as $key => $value){
$array[$key] = ($value) ? preg_replace('/[^0-9.]+/', '', $value) : 0;
}
$array = array_unique($array);
sort($array);

return $array;
}

public static function getFieldName($type) {
switch($type) {
case 'textfield' :
return JText::_('TEXT_FIELD');
break;
case 'selectlist' :
return JText::_('DROP_DOWN_LIST');
break;
case 'checkbox' :
return JText::_('CHECK_BOX');
break;
case 'radio' :
return JText::_('RADIO_BUTTON');
break;
case 'minmax' :
return JText::_('MIN_MAX');
break;
}
}

}

?>
The administrator has disabled public write access.

error Multiple access type modifiers are not allow 3 years 4 months ago #413

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2756
  • Thank you received: 291
  • Karma: 40
Please don't delete anything.

Send the following details to This email address is being protected from spambots. You need JavaScript enabled to view it.

1. You site URL where you face this issue
2. Joomla admin acess
3. Your site FTP details

We will check and fix it from our end.
The administrator has disabled public write access.
The following user(s) said Thank You: josep

error Multiple access type modifiers are not allow 3 years 4 months ago #414

  • josep
  • josep's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I found an error I deleted double "public"

public static public function getModalObject($task, $id, $alias, $text, $width, $height, $button = false) {

now everything is working properly. thank you very much
The administrator has disabled public write access.
Time to create page: 0.236 seconds