-
Addons / modules not visable in admin
Hi all,
I have upgraded my site from Zen Cart version 1.3.9h to 1.5.0 but non of the addons are showing up in admin.
But somehow they seems to be working. For example simple seo url works the urls are seo but it's showing up in admin while in version 1.3.9h it showed under Configuration.
I have this problem with all my addons. Here is a list of addons I am using.
- Simple SEO Url
- Related Products
- Export Shipping Information
- Products Profitmargin calculator report (This one is showing the prices under the articles but the rapport is showing under rapports)
So they are working but doesn't add the controls to admin/configuration.
Does anyone have a solution for this problem?
Thanks in advance.
-
Re: Addons / modules not visable in admin
The addon needs to be upgraded to work with the new admin menu system in v1.5. There are several discussion threads which address those matters.
There are several more things, security-related, that are also required when upgrading modules for compatibility with v1.5. If you don't also do those things then your addons will not work either. They'll be redirecting you to your admin home page every time you click on a link in the addon.
So, merely adding menu options isn't sufficient for all addons.
-
Re: Addons / modules not visable in admin
For those who want an answer.
Add in admin -> includes -> functions -> extra_functions a file named init_[addonname].php
PHP Code:
<?php
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (function_exists('zen_register_admin_page')) {
if (!zen_page_key_exists('Addonname')) {
zen_register_admin_page('Addonname', 'BOX_ADDON',
'FILENAME_ADDON','' , 'configuration', 'Y', 20);
}
}
?>
Get the right values for BOX_ADDON and FILENAME_ADDON out of admin -> includes -> boxes -> extra_boxes -> addon_dhtml.php
Between the '' you can place page params if needed
You can change configuration to any menu item you want your addon to appear under.
The Y is to say it must be visable in the menu
The 20 can be every number and is to define the position in the menu
-
Re: Addons / modules not visable in admin
Hello, Im having the same issues with the 3rd parity addons in version 1.5. The addons I am trying to install are email address exporter, newletter subscribe 2.2.2 and simple google analytics. Can I have an example of code for a file named init_[addonname].php
-
Re: Addons / modules not visable in admin
I think I'd be waiting for the module authors to update the code and for the approved versions to be added to downloads, rather than hacking it up.
-
Re: Addons / modules not visable in admin
Hi hottrendz for Related Products I used:
PHP Code:
<?php
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (function_exists('zen_register_admin_page')) {
if (!zen_page_key_exists('Related Products')) {
// Add the link to the Related Products Mapping Config Utility
zen_register_admin_page('Related Products', 'BOX_CATALOG_RELATED_PRODUCTS',
'FILENAME_RELATED_PRODUCTS_SELECT', '', 'catalog', 'Y', 20);
}
}
?>
-
Re: Addons / modules not visable in admin
does it matter if the content of the box name and the related product be in upper or lower case. Also, does the file in admin/functions/extrafunctions/init_productname.php be in upper or lower case? I guess what I'm really asking is do I need to match cases of the filename and product within the .php file with the .php file name?
-
Re: Addons / modules not visable in admin
Did everyone in this thread ignore/miss this????
Quote:
Originally Posted by
DrByte
The addon needs to be upgraded to work with the new admin menu system in v1.5. There are several discussion threads which address those matters.
There are several more things, security-related, that are also required when upgrading modules for compatibility with v1.5. If you don't also do those things then your addons will not work either. They'll be redirecting you to your admin home page every time you click on a link in the addon.
So, merely adding menu options isn't sufficient for all addons.
-
Re: Addons / modules not visable in admin
I guess the only thing left to say is - we're screwed until the needed add-on's are modified for 1.5. For those of us who aren't programmers are left stranded with functionality not working and our business information suffering. I suggest those affected roll back to the previous version until the needed add-on's are upgraded. :frusty:
-
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
jfreeman
I guess the only thing left to say is - we're screwed until the needed add-on's are modified for 1.5. For those of us who aren't programmers are left stranded with functionality not working and our business information suffering. I suggest those affected roll back to the previous version until the needed add-on's are upgraded. :frusty:
or INVEST some money into paid assistance to upgrade the modules you need..
-
Re: Addons / modules not visable in admin
True -> however - getting a programmer to understand 1.5 and upgrading the modules I'm sure is going to be a lot of money. Have any suggestions of who to get in touch with the right people who know 1.5 and could perform the upgrades? I've tried contacting the authors of some of my add-ons and so far I've not had any responses :cry:
-
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
jfreeman
True -> however - getting a programmer to understand 1.5 and upgrading the modules I'm sure is going to be a lot of money. Have any suggestions of who to get in touch with the right people who know 1.5 and could perform the upgrades? I've tried contacting the authors of some of my add-ons and so far I've not had any responses :cry:
It's an investment and IMHO the cost of doing business.. Can't always rely on free add-ons as some authors come and go.. Life happens, folks get busy,, and frankly folks update things when their free time allows if the spirit so moves them. So if your site is your livelihood, it makes sense to invest money into getting your updates versus waiting for every last free add-on you rely on to be updated.. (Especially those add-ons that have not been updated in YEARS.. they may not be upgraded for v1.5 for a while.. if ever unless someone decides to "own" it..)
-
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
jfreeman
I suggest those affected roll back to the previous version until the needed add-on's are upgraded. :frusty:
There's nothing to "roll back" if you're properly building your upgraded site in a TEMPORARY space.
-
Re: Addons / modules not visable in admin
Very true:) Anyone who has this problem has not been following the repeated instructions to test the upgrade first before doing it on your live site.
Also, before starting upgrades you should check on all of your important mods to see if they are reported to be working with v1.5.0. (see the sticky thread Confirmed working mods in Zen Cart 1.5 at the top of this subforum).
-
Re: Addons / modules not visable in admin
Quote:
Also, before starting upgrades you should check on all of your important mods to see if they are reported to be working with v1.5.0.
Yep. This is why I haven't moved my live sites to 1.5 yet. There's one mod that is critical that needs to be updated. The other mods I use all test out fine. Either the old versions already worked, or the authors have updated.
-
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
DrByte
The addon needs to be upgraded to work with the new admin menu system in v1.5. There are several discussion threads which address those matters.
There are several more things, security-related, that are also required when upgrading modules for compatibility with v1.5. If you don't also do those things then your addons will not work either. They'll be redirecting you to your admin home page every time you click on a link in the addon.
So, merely adding menu options isn't sufficient for all addons.
@Dr. Byte
Just so I fully understand. Really for a mod for 1.5 -
-- the admin pages table needs to be populated as discussed in a few other threads.
-- get parameters should be avoided as much as possible especially for any data that effects database changes.
-- all data needs to be sanitised
Are there any other rules that need to be done in the 'several more things' list?
-
Re: Addons / modules not visable in admin
I don't think you need to avoid GET parameters when fetching info for display to the customer; it's only when saving the info to the db in some way that they are risky.
-
Re: Addons / modules not visable in admin
Absolutely, that was my understanding too . In that things like filters were still acceptable.
But at the same time, I can't see why one would not code those out of existence too for consistency's sake, I mean to say that the advantages of using a get parameter are less important in admin anyway. I can't really imagine a situation where send a filter by post would be a disadvantage if handled correctly, for example.
I guess I am coming at this a bit from the angle of writing new stuff rather than updating old things but ...
-
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
DivaVocals
It's an investment and IMHO the cost of doing business.. Can't always rely on free add-ons as some authors come and go.. Life happens, folks get busy,, and frankly folks update things when their free time allows if the spirit so moves them. So if your site is your livelihood, it makes sense to invest money into getting your updates versus waiting for every last free add-on you rely on to be updated.. (Especially those add-ons that have not been updated in YEARS.. they may not be upgraded for v1.5 for a while.. if ever unless someone decides to "own" it..)
I agree 100% :yes:
-
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
DivaVocals
Did everyone in this thread ignore/miss this????
DivaVocals obviously wants you to pay her/him to do these things rather than allow others to learn how to write the code or allow others in these forums to teach each other how to write the code. :no:
She/he also assumes that we are doing this on a live site. :no:Bonkers...I am trying this on a test site...if the funtionality works then maybe it can be added to the original mod and submitted for approval....and then people can contribute their own time and there will be more people out there to make contributions.:clap:
-
Re: Addons / modules not visable in admin
@Wilpak
Well actually, I think that is a bit unfair. You do not get to thousands of posts on any forum by being a forum vampire. Diva has put in a lot of time helping people. And is working on several mods for upgrade to 1.5 that will be released when they are ready.
The thing is that this particular thread is about mods not being visible in admin. If you are having problems with that issue then this is a really good place to post your questions and people will do their best to help. If your question is a more general 'Why doesn't this module work with 1.5?' then this thread is not the right place for that kind of specific advice because to answer it people need to have specific knowledge of the module as well as knowledge about the changes in Zen 1.5.
There just is not a simple answer to the 'why doesn't this work with 1.5?' however much people want there to be one and at times have suggested that there is an answer that is somehow being hidden from them. It depends entirely on the module.
-
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
WilpackPackaging
DivaVocals obviously wants you to pay her/him to do these things rather than allow others to learn how to write the code or allow others in these forums to teach each other how to write the code. :no:
OBVIOUSLY??? Really.. It's OBVIOUS that this is my M.O.???? Wow.. I thought I was being transparent.. :laugh::laugh::laugh:
-
Re: Addons / modules not visable in admin
Thanks Nick.. and I'd like to add to this what I ACTUALLY mean when I suggest paying someone to upgrade mods to work in 1.5... (Since Wilpak seems to not fully understand the TRUE intent of my message -- especially since he dragged a quote of mine from a DIFFERENT topic over here to quote me in his post..)
If you are upgrading to Zen Cart v1.5 NOW and the mods you use have not been upgraded to be v1.5 compatible, and it's IMPORTANT TO YOUR BUSINESS, then as a BUSINESS PERSON, you need to INVEST in paying a qualified developer to upgrade the add-ons you need to be v1.5 compatible.
I am in NO WAY angling to upgrade mods for people and the fact that Wilpak ASSumed this is nonsense.. I have ENOUGH work upgrading the free mods I've been maintaining, along with upgrading my client's website, PLUS a demanding day job (in software development). I don't NEED to troll this forum looking for free-mod upgrade work.. (and for the record Wilpak, this is an activity I've NEVER engaged in on this forum thank you very much..)
Now could I spend my time writing detailed posts about the step by step instructions for HOW to upgrade Ty Package Tracker, hideCategories, Edit Orders, Super Orders, and Image Handler to be Zen Cart v1.5 compatible so I can TEACH others how to do this themselves?? I sure could.. but as you pointed out Nick the requirements to upgrade each of these mods is very different, and since I'm upgrading these mods already along with all the afore mentioned other stuff on my plate, I just don't have time to do this TOO!!!!!
It's a volunteer effort for goodness sakes!!! It's as if people forget that part because all they know is they need to update THEIR store.. So their need to upgrade is supposed to be a priority for anyone who contributes to the community too?? :censored::no:
So this is why I say.. If you are in business and you are a business person, your business plan cannot fully rely on FREE contributions. You may actually have to INVEST in some development work to get the updates you need if you are not capable of making the changes yourself
OR
you can wait until the folks who volunteer here make the changes and submit them to the free downloads section.
I will continue to suggest this, and for the record, I am NOT the only person who has made this suggestion.. If Wilpak CHOOSE to believe I have some other meaning to this suggestion he is free to think what he wants..
**now where is that ignore button when you need it??**:laugh:
Quote:
Originally Posted by
niccol
@Wilpak
Well actually, I think that is a bit unfair. You do not get to thousands of posts on any forum by being a forum vampire. Diva has put in a lot of time helping people. And is working on several mods for upgrade to 1.5 that will be released when they are ready.
The thing is that this particular thread is about mods not being visible in admin. If you are having problems with that issue then this is a really good place to post your questions and people will do their best to help. If your question is a more general 'Why doesn't this module work with 1.5?' then this thread is not the right place for that kind of specific advice because to answer it people need to have specific knowledge of the module as well as knowledge about the changes in Zen 1.5.
There just is not a simple answer to the 'why doesn't this work with 1.5?' however much people want there to be one and at times have suggested that there is an answer that is somehow being hidden from them. It depends entirely on the module.
-
Re: Addons / modules not visable in admin
what if a mod has several menu items?
I tried this, does work but needed 4 files, now I get little errors like
Cannot send session cache limiter - headers already sent by some file
or
PHP Warning: Cannot modify header information - headers already sent by some file
and of course a blank page now and then but the mod does work if you go back to look any changes you made are there
Quote:
Originally Posted by
purpleskybv
For those who want an answer.
Add in admin -> includes -> functions -> extra_functions a file named init_[addonname].php
PHP Code:
<?php
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (function_exists('zen_register_admin_page')) {
if (!zen_page_key_exists('Addonname')) {
zen_register_admin_page('Addonname', 'BOX_ADDON',
'FILENAME_ADDON','' , 'configuration', 'Y', 20);
}
}
?>
Get the right values for BOX_ADDON and FILENAME_ADDON out of admin -> includes -> boxes -> extra_boxes -> addon_dhtml.php
Between the '' you can place page params if needed
You can change configuration to any menu item you want your addon to appear under.
The Y is to say it must be visable in the menu
The 20 can be every number and is to define the position in the menu
-
Re: Addons / modules not visable in admin
Quote:
Originally Posted by
AndyIII
now I get little errors like
Cannot send session cache limiter - headers already sent by some file
or
PHP Warning: Cannot modify header information - headers already sent by some file
and of course a blank page
Those are caused by PHP errors, which are logged in the /logs/ folder as explained here: http://www.zen-cart.com/content.php?124-blank-page
Read the logs, see the errors, look up the error messages and fix their causes. The FAQs area on this site are a good starting point. Sounds like you're outputting data prematurely, even if it's only blank spaces.