Forums / All Other Contributions/Addons / Admin Profiles (for v1.3.x only!) Support Thread

Admin Profiles (for v1.3.x only!) Support Thread

Views: 334,557

Results 1,121 to 1,140 of 1,242
27 Apr 2011, 11:19 AM
#1121
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Admin Profiles (for v1.3.x only!) Support Thread

The function in functions_general is the original Zen Cart version, the other is the one that replaces it.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

27 Apr 2011, 12:13 PM
#1122
marknew avatar

marknew

Zen Follower

Join Date:
Oct 2005
Posts:
274
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

OK, thanks.
Did i miss that in the readme.txt somewhere?
Is there anything else to change apart from the changes to admin/admin.php ?

27 Apr 2011, 12:24 PM
#1123
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

It's patch 4 in the step 3. And yes, patch 3 is for changes to the admin/includes/languages/english.php file.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 May 2011, 12:09 AM
#1124
planetdh avatar

planetdh

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

I have searched the forums and tried to narrow my search to this forum post, but could not figure it out. Unless maybe my problem has not even been addressed yet.

I have installed the profiles module step by step and have not had a single issue until I get to the point where after I log in, I go to Admin > Tools > Admin Settings
And this is what comes up on my screen instead of menus where I assign permissions, etc:

Parse error: syntax error, unexpected $end in /home/danny89/public_html/shop/test_admin/admin.php on line 346

Can anyone tell me what is causing this and how I go about solving the issue?

V 1.3.9h

6 May 2011, 12:15 AM
#1125
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

planetdh:

I have installed the profiles module step by step and have not had a single issue until I get to the point where after I log in, I go to Admin > Tools > Admin Settings
And this is what comes up on my screen instead of menus where I assign permissions, etc:

Parse error: syntax error, unexpected $end in /home/danny89/public_html/shop/test_admin/admin.php on line 346

Can anyone tell me what is causing this and how I go about solving the issue?This means that you have made a small error when applying the patches to the admin.php file. I recommend double checking them very carefully, This could be as small as a single character out of place.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 May 2011, 12:20 AM
#1126
planetdh avatar

planetdh

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi:

This means that you have made a small error when applying the patches to the admin.php file. I recommend double checking them very carefully, This could be as small as a single character out of place.
This is what my code says: (not sure how I applied the patches wrong when this was the file given to me from the zip file : / I even tried relocating that last script to just about the </html> tag thinking maybe it was out of place..but then it told me the error was on line 347.

338 <!-- body_eof //-->

  <!-- footer //-->
  <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
  <!-- footer_eof //-->
  <br>
  </body>
  </html>

346 <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

6 May 2011, 4:34 AM
#1127
planetdh avatar

planetdh

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Awesome! Fixed the problem! The last line of code (Line 346) on the admin.php file, it's missing a '}' at the front of the closing php tag! :D

But NOW...I have a new problem, I can't add additional users!! :huh:

From the Admin Settings page, I click 'Insert' to create a new user, but the only thing that happens is the Insert button disappears and the url changes to what SHOULD be the add new user page!

Any thoughts or suggestions on this one?

6 May 2011, 9:09 AM
#1128
alan145 avatar

alan145

New Zenner

Join Date:
Aug 2009
Posts:
63
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

Hello Kuroi,
I run a website useing 1.3.8.a zen cart and use the Admin Profiles, previously it run welll, and then we have change some add-ons, like sitemap, update it the latest, and add the ceon url mapping rewrite modual, and today I want to set the admin files, when I tick some menu for the admin user, and click save it saved and returned to main page of admin, but when I check again about it, found that the menu which choose to tick is not tick at all,
that means, the admin files can't save it.
Could you tell me that the problem is? Thank you very much

6 May 2011, 9:47 AM
#1129
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

planetdh:

Awesome! Fixed the problem! The last line of code (Line 346) on the admin.php file, it's missing a '}' at the front of the closing php tag! :D

But NOW...I have a new problem, I can't add additional users!! :huh:

From the Admin Settings page, I click 'Insert' to create a new user, but the only thing that happens is the Insert button disappears and the url changes to what SHOULD be the add new user page!

Any thoughts or suggestions on this one?Sort of. I'm not convinced that your fix was correct. The line number reported is merely where the PHP parser detected the problem of the missing bracket. The place from which it was missing would have been rather earlier.

So although you've managed to get past the error, the underlying problem is still there.

Trouble is it doesn't resolve any that I've seen before, so is specific to your site, making it difficult to comment with greater clarity.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 May 2011, 9:48 AM
#1130
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

alan145:

Hello Kuroi,
I run a website useing 1.3.8.a zen cart and use the Admin Profiles, previously it run welll, and then we have change some add-ons, like sitemap, update it the latest, and add the ceon url mapping rewrite modual, and today I want to set the admin files, when I tick some menu for the admin user, and click save it saved and returned to main page of admin, but when I check again about it, found that the menu which choose to tick is not tick at all,
that means, the admin files can't save it.
Could you tell me that the problem is? Thank you very muchWhich version of Admin Profiles are you using? Is it one designed for 1.3.8a or 1.3.9?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 May 2011, 10:23 AM
#1131
alan145 avatar

alan145

New Zenner

Join Date:
Aug 2009
Posts:
63
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi:

Which version of Admin Profiles are you using? Is it one designed for 1.3.8a or 1.3.9?

I use the one designed for 1.3.8a, and I have try to re-install it, and it is oK, but then the sub catagories are missing, you can see the pictures, I really confused about that

6 May 2011, 11:06 AM
#1132
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

alan145:

I use the one designed for 1.3.8a, and I have try to re-install it, and it is oK, but then the sub catagories are missing, you can see the pictures, I really confused about thatAlthough your second picture is of Admin Profiles, I don't recognise the first one, which must come from an add-on module with which I'm not familiar. Not knowing the add-on, it's difficult to understand what the problem.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

6 May 2011, 12:32 PM
#1133
alan145 avatar

alan145

New Zenner

Join Date:
Aug 2009
Posts:
63
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi:

Although your second picture is of Admin Profiles, I don't recognise the first one, which must come from an add-on module with which I'm not familiar. Not knowing the add-on, it's difficult to understand what the problem.

Dear Kurol, what I mean is that the precious one come with the product catogeries and sub catagories, but after install this add-on, the catogeries and sub catagories and missing, Can you understand me now? Sorry I do not express well

11 May 2011, 12:43 AM
#1134
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

I'm trying to install Apsona ShopAdmin and am getting a particular error, so I contacted their support and they referred me to this thread. After doing some reading on it, it seems the error in trying to install the this mod is based on some incorrect SQL syntax from this mod, Admin profiles.

I'm trying to do all this on my install of 139H. The install error that I get when trying to install ShopAdmin is as follows:

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 'apsona_index');'' at line 1
in:
[SELECT id FROM admin_files WHERE page = '#" title="Apsona ShopAdmin - opens in new window" onclick="apsona_showPopup('apsona_index');']
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

It seems to stem from this line in apsona_app_tools_dhtml.php:

$za_contents[] = array('text' => "Apsona ShopAdmin", 'link' => '#" title="Apsona ShopAdmin - opens in new window" onclick="apsona_showPopup('apsona_index.php');');

Does anyone have a fix for this, to make ShopAdmin work with Admin Profiles? I'm using the Admin profiles for 139h.

Thank you,
autoace

11 May 2011, 8:04 AM
#1135
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

@alan145

I wonder if you're using http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_41&products_id=1088

This was developed from Admin Profiles but was a bad idea, immediately abandoned by its author, and it would be a surprise if it worked in current versions of Zen Cart.

I'm afraid that's not supported here, or anywhere else to my knowledge.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

11 May 2011, 8:15 AM
#1136
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

@autoace

The problem isn't with Admin Profiles. It's that Apsona launches itself in a non-standard way and the mini script that it uses to do so and which you're putting in your database is breaking SQL when used in a query.

You're already escaping the single quotes, e.g. putting "" before them in your admin_files entry for Apsona. You could try escaping the escapes (i.e. put two more backslashes before each single quote), but there's no guarantees for that, so please let us know whether or not it works.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

11 May 2011, 10:54 PM
#1137
planetdh avatar

planetdh

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

So what do you suggest I do? I copy/pasted the code below for clarity.

<!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); }?>
11 May 2011, 10:55 PM
#1138
planetdh avatar

planetdh

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi:

Sort of. I'm not convinced that your fix was correct. The line number reported is merely where the PHP parser detected the problem of the missing bracket. The place from which it was missing would have been rather earlier.

So although you've managed to get past the error, the underlying problem is still there.

Trouble is it doesn't resolve any that I've seen before, so is specific to your site, making it difficult to comment with greater clarity.

So what do you suggest I do? I copy/pasted the code below for clarity.

<!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); }?>
11 May 2011, 11:01 PM
#1139
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin Profiles (for v1.3.x only!) Support Thread

planetdh:

So what do you suggest I do?I suggest doing a file comparison between your version of this file and the one in an unchanged version of Zen Cart to find the place where the bracket matching problem has slipped in, rather than just adding an extra bracket at the end.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

11 May 2011, 11:38 PM
#1140
planetdh avatar

planetdh

New Zenner

Join Date:
May 2011
Posts:
11
Plugin Contributions:
0

Re: Admin Profiles (for v1.3.x only!) Support Thread

kuroi:

I suggest doing a file comparison between your version of this file and the one in an unchanged version of Zen Cart to find the place where the bracket matching problem has slipped in, rather than just adding an extra bracket at the end.

Wow...I guess file comparisons really do work! I found where I left out the }

Thank you very much for pointing me in the right direction. I guess I need to be more careful about copying ALL info in the instructions! :smile: