Jump to content
Sign in to follow this  
papasan

[CONTRIB] Admin Access Level Accounts for MS2

Recommended Posts

Hi All,

 

Great contribution but I'm having some problems. I've searched the thread and made sure that the tep_merge_array isn't in my code and it's not. But here are the errors I'm getting.

 

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/tranquilsense/admin/admin_members.php on line 358

 

Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/tranquilsense/admin/includes/classes/object_info.php on line 17

 

Warning: Variable passed to each() is not an array or object in /var/www/tranquilsense/admin/includes/classes/object_info.php on line 18

 

Any help is greatly appreciated!

 

Thanks - Zack

I have an identical problem - has anyone found a solution? The same problem is outlined on at least one other EN Oscommerce forum and some foreign language ones too. For instance: http://forums.digitalpoint.com/showthread.php?t=1547680

(not holding breath as this thread is rather old)

Share this post


Link to post
Share on other sites

I have an identical problem - has anyone found a solution? The same problem is outlined on at least one other EN Oscommerce forum and some foreign language ones too. For instance: http://forums.digitalpoint.com/showthread.php?t=1547680

(not holding breath as this thread is rather old)

 

Solution:

Find $mInfo_array = array_merge($admin, $admin_group);

Change to: $mInfo_array = array_merge((array)$admin, (array)$admin_group);

do same to two other similar lines

Share this post


Link to post
Share on other sites

I installed this and did a little customization with the access files on admin_accexx.php so the salespeople would only have access to the admin areas they need to view or update, unfortunately is still granting access to all areas. I have the osCommerce open source Point of Sale contib (http://addons.oscommerce.com/info/3016/v,22) installed versus the The package at www.oscommerce-pos.com. I have altered the accessible files to areas such as reviews.php, faq.php and those sorts of files. When I test using their usernames and passwords, they are still granted access to the entire admin. Can you tell me where or what might be causing these error, so I can correct it?

Share this post


Link to post
Share on other sites

Hi everybody.

 

I have installed this contribution and apparently everything went smooth except when I try to add a new member to a group of administrators: in this case, I get the following error

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and categories_id=20' at line 1

 

select categories_name from categories_description where language_id= and categories_id=20

 

[TEP STOP]

 

I get the following error I have tried to search for previous posts regarding this error but nothing shows up. Other similar posts dealing with the 1064 error either have different description or are not related to this contribution.

 

Anybody has any idea on how to solve this issue?

 

Thanks a lot in advance

 

Mendoh

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×