Re: Admin Profiles Support Thread
@alan145
I wonder if you're using http://www.zen-cart.com/index.php?ma...oducts_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.
Re: Admin Profiles 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.
Re: Admin Profiles 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'); }?>
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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'); }?>
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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.
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
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:
Re: Admin Profiles Support Thread
Glad you found it. I find file comparisons from a good automated tool (I particularly like Beyond Compare) invaluable for getting a much more accurate assessment of changes (working or otherwise) than I could possibly achieve from a visible inspection alone.
Oh, and credit to you too. Often when us old hands keep telling people the same thing they get frustrated thinking that we're not getting it. Can happen, but usually it's the opposite. You though were listening and so got to the bottom of the issue, which is always good to see.
Re: Admin Profiles Support Thread
Quote:
Originally Posted by
kuroi
@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
Did as you suggested and no go :no:
Would you be able to suggest another possible work around so that both mods can live in harmonly :)
Re: Admin Profiles Support Thread
You could try replacing the whole box_file with just the line
Quote:
$za_contents[] = array('text' => "Apsona ShopAdmin", 'link' => 'apsona_index.php');
and then right clicking to launch in a new tab/window when you want to use it.
Re: Admin Profiles Support Thread
Help me about multi languages in Admin Profile.
when i chose Edit Permission, then select a language Vietnamese in combobox Define Languages. ZenCart have a error such as:
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 '' at line 1
in:
[SELECT admin_name FROM admin WHERE admin_id = ]
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.
Please, help me how to fix this error? Thanks a lot