Jump to content
GetSirius

Categories Navbar Module - Phoenix v1.0.6.0

Recommended Posts

Posted (edited)

Hello,

Hope this is the proper place to ask, I did not find a support topic for Categories Navbar Module.

Just installed this in Phoenix v1.0.6.0 (php 7.3.18) and when installed, entire shopping cart goes blank. Dashboard is fine, uninstalled module and shopping cart is back. I found that when uploading, the instructions call for files to be placed in includes/languages/english/modules/navbar_modules which does not exist, only includes/languages/english/modules/navbar. Also, includes/modules/navbar_modules where only includes/modules/navbar exists. Tried making the new folders, app was not there to be installed.  

Any help?

Thank you, Chuck

Edited by GetSirius

Share this post


Link to post
Share on other sites

You might like to link to the addon so that anyone else who is using the same can help you.


Help shape the future of Phoenix; join the Phoenix Club

Share this post


Link to post
Share on other sites
40 minutes ago, GetSirius said:

entire shopping cart goes blank.

Also, this usually means that there is an error.  This error might be logged somewhere.  And knowing what the error was would be helpful. 

You'd have to put the files in navbar not navbar_modules. 


Always back up before making changes.

Share this post


Link to post
Share on other sites

Thank you ecartz. Found in error_log: 
PHP Warning:  require(includes/modules/navbar_modules/templates/tpl_nb_categories.php): failed to open stream: No such file or directory in /home/ice/public_html/shopping/includes/modules/navbar/nb_categories.php on line 68

Changed line 68 to:
  require('includes/modules/navbar/templates/tpl_nb_categories.php');

Appears to be working!

Share this post


Link to post
Share on other sites

You might want to change lines 67-71 to

      $tpl_data = ['group' => $this->group, 'file' => __FILE__];
      include 'includes/modules/block_template.php';

Which happens to be robust in the face of name changes as well as forwardly compatible with switchable templates.  See https://github.com/gburton/CE-Phoenix/commit/e8280d9fdf6364c01484fb5f292adf2511bcefbb#diff-da2a69f7f229fdc1ad483c93b286d7f2 for examples. 


Always back up before making changes.

Share this post


Link to post
Share on other sites

Thank you. Made the change and tested working in 1.0.6.0

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

×