Blesta Addons Posted December 27, 2014 Report Posted December 27, 2014 i get a error when i want to access any link in the system tab . i get the error : substr_compare() [<a href='function.substr-compare'>function.substr-compare</a>]: The length must be greater than zero on line 12 in /home/*****/public_html/blesta/app/views/admin/default/settings_leftnav.pdt all other links in blesta are working fine . note i have multi-company enabled .
Michael Posted December 27, 2014 Report Posted December 27, 2014 Mine works fine and I also have multi-company enabled.
Blesta Addons Posted December 27, 2014 Author Report Posted December 27, 2014 i have tested with otehr browsers , the same error , al the admin side work , the company setting work . admin/settings/system/ --- is workign admin/settings/system/{anylinkhere} --- not working and give the above error . EDIT : i have found that the marketplace url is getting it from the config file . don't if this url is added to the upgrade script . i will add it manually and test again . EDIT 2 : there are no upgrade file upgrade3_4_0_b2.php related to 3.4.0.b2 in the file downloaded from blesta site .
Blesta Addons Posted December 27, 2014 Author Report Posted December 27, 2014 i have found the market place setting empty in the config file , i have added the market place url , and is now working fine . Configure::set("Blesta.marketplace_url", "http://marketplace.blesta.com"); i don't know if the upgrade has missed up to ad the value or is a bug in v 3.0.4.b2 .
Michael Posted December 27, 2014 Report Posted December 27, 2014 The Marketplace should show this: In every version until they finish the Marketplace on the blesta site which will be the main area until the plugin is done. And in the config shows: // The URL to the marketplace Configure::set("Blesta.marketplace_url", "");
Blesta Addons Posted December 28, 2014 Author Report Posted December 28, 2014 The Marketplace should show this: marketplace.PNG In every version until they finish the Marketplace on the blesta site which will be the main area until the plugin is done. And in the config shows: // The URL to the marketplace Configure::set("Blesta.marketplace_url", ""); are you using b2 ? if yes , can you go to app/models/navigation.php search 'name' => $this->_("Navigation.getsystem.nav_marketplace"), paste the lines associated with it , the main is array( 'name' => $this->_("Navigation.getsystem.nav_marketplace"), 'class' => "marketplace", 'uri' => Configure::get("Blesta.marketplace_url"), 'attributes' => array('target' => "_blank") ) one of us has a wrong version/files !!!
Michael Posted December 28, 2014 Report Posted December 28, 2014 Yes I am using b2 I have done since they put it out. Files last edited 18/12/2014 17:44:18 Downloaded: 18 December 2014, 17:32:11 (18/12/2014 17:32:11) And I also have: array( 'name' => $this->_("Navigation.getsystem.nav_marketplace"), 'class' => "marketplace", 'uri' => Configure::get("Blesta.marketplace_url"), 'attributes' => array('target' => "_blank") )
Blesta Addons Posted December 28, 2014 Author Report Posted December 28, 2014 Yes I am using b2 I have done since they put it out. Files last edited 18/12/2014 17:44:18 Downloaded: 18 December 2014, 17:32:11 (18/12/2014 17:32:11) And I also have: array( 'name' => $this->_("Navigation.getsystem.nav_marketplace"), 'class' => "marketplace", 'uri' => Configure::get("Blesta.marketplace_url"), 'attributes' => array('target' => "_blank") ) so the difference was in the config.php , in the mine it was empty value . maybe the probleme was in the upgrade .... or something else with it , because the config was a empty value .
Michael Posted December 28, 2014 Report Posted December 28, 2014 so the difference was in the config.php , in the mine it was empty value . maybe the probleme was in the upgrade .... or something else with it , because the config was a empty value . weird :s
Tyson Posted December 29, 2014 Report Posted December 29, 2014 The system settings nav was updated in 3.4.0-b2 to use the marketplace URL from the config file, however, the value in the config file is not set until v3.4.0. The message you received should have been a PHP warning--not an error--so you may not have been able to view the links because of your error reporting level. Michael and Blesta Addons 2
Blesta Addons Posted December 31, 2014 Author Report Posted December 31, 2014 yes i use error report in config file . happy to know it was normal and not a strange issue .
Recommended Posts