Alireza Sadeghian
Alireza Sadeghian

Reputation: 429

Joomla component doesn't show Permissions actions

I am creating a new component that has a Permissions tab like other components using config.xml and access.xml files.

but i have a weird problem, everything is fine when i install it on localhost but when i install the component on my host on the web it doesn't show the actions for access levels (Configure, Access Administration Interface, Create, Edit, Edit state, Edit own).

other components work fine and my component works fine on localhost.

i tested it on cPanel and Direct Admin and again the same problem happens.

does anyone had this problem before?

Upvotes: 0

Views: 295

Answers (3)

Alireza Sadeghian
Alireza Sadeghian

Reputation: 429

I copied the code from com_weblinks/config.xml to my component config.xml file and it worked!

<fieldset name="permissions"
        description="JCONFIG_PERMISSIONS_DESC"
        label="JCONFIG_PERMISSIONS_LABEL">
        <field name="rules" type="rules"
               component="com_component_name"
               filter="rules"
               validate="rules"
               label="JCONFIG_PERMISSIONS_LABEL"
               section="component" />
</fieldset>

I found I had entered my component name in capital letters component="COM_COMPONENT_NAME", so cPanel and Direct admin both were case sensitive about this, but localhost didn't care!

Upvotes: 1

Mrunal Pittalia
Mrunal Pittalia

Reputation: 165

Please make sure that you have "config.xml" abd "access.xml" at "administrator/components/com_component_name" from the root folder of Joomla.

if they are not, you can manually upload then at above mentioned destination by FTP or Cpanel Upload.

let me know if it doesn't works.

Upvotes: 1

eyesfree
eyesfree

Reputation: 186

With Joomla I always have problems with file permissions on the server. So if your hosting server is linux, check the file permissions to be sure they can be opened by the Joomla module - files with 644 permissions could be problematic. I am not saying you should change them immediately - this is an ugly hack and its a security issue.

Upvotes: 0

Related Questions