Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Permission Issue In Addon Rate Topic   - - - - -

 
  • e55388
  • Member
  • Trial users
  • Join Date: 09-Mar 15
  • 26 posts

Posted 09 October 2017 - 08:28 AM #1

Hello,

 

I got this warning for every addon,

 

PHP Warning: Cannot use a scalar value as an array in /home/nagpurcars/public_html/mv434/app/addons/discussion/schemas/permissions/admin.post.php on line 15

PHP Warning: Cannot use a scalar value as an array in /home/nagpurcars/public_html/mv434/app/addons/seo/schemas/permissions/admin.post.php on line 36

Whats the issue is that??



 

Posted 10 October 2017 - 06:59 AM #2

The problem requires examination on your server. Please contact us via Customer Help Desk and provide temporary access to your server by clicking on the Add record  link on the Access information page of your Help Desk account so that we could examine the issue.

 

Hello,

 

I got this warning for every addon,

 

PHP Warning: Cannot use a scalar value as an array in /home/nagpurcars/public_html/mv434/app/addons/discussion/schemas/permissions/admin.post.php on line 15

PHP Warning: Cannot use a scalar value as an array in /home/nagpurcars/public_html/mv434/app/addons/seo/schemas/permissions/admin.post.php on line 36

Whats the issue is that??


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 14,923 posts

Posted 10 October 2017 - 08:54 AM #3

Hello,

 

I got this warning for every addon,

 

PHP Warning: Cannot use a scalar value as an array in /home/nagpurcars/public_html/mv434/app/addons/discussion/schemas/permissions/admin.post.php on line 15

PHP Warning: Cannot use a scalar value as an array in /home/nagpurcars/public_html/mv434/app/addons/seo/schemas/permissions/admin.post.php on line 36

Whats the issue is that??

 

Please post the content of the admin.post.php file here


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • e55388
  • Member
  • Trial users
  • Join Date: 09-Mar 15
  • 26 posts

Posted 14 October 2017 - 10:05 AM #4

Please post the content of the admin.post.php file here

This is the content :

 

<?php
 
 
$schema['discussion_manager'] = array (
    'permissions' => array ('GET' => 'view_discussions', 'POST' => 'manage_discussions'),
);
$schema['discussion'] = array (
    'permissions' => array ('GET' => 'view_discussions', 'POST' => 'manage_discussions'),
);
 
$schema['index']['modes']['delete_post'] = array (
    'permissions' => 'manage_discussions'
);
 
$schema['tools']['modes']['update_status']['param_permissions']['table']['discussion_posts'] = 'manage_discussions';
 
return $schema;


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 14,923 posts

Posted 16 October 2017 - 07:23 AM #5

 

This is the content :

 

<?php
 
 
$schema['discussion_manager'] = array (
    'permissions' => array ('GET' => 'view_discussions', 'POST' => 'manage_discussions'),
);
$schema['discussion'] = array (
    'permissions' => array ('GET' => 'view_discussions', 'POST' => 'manage_discussions'),
);
 
$schema['index']['modes']['delete_post'] = array (
    'permissions' => 'manage_discussions'
);
 
$schema['tools']['modes']['update_status']['param_permissions']['table']['discussion_posts'] = 'manage_discussions';
 
return $schema;

 

This issues can be caused by 3rd party module which changes permissions schema before the mentioned files are called. Try to disable 3rd party modules, clear cache and check the result


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия