ajdruff / nomstock-com

Nomstock.Com Website Code Libraries
0 stars 0 forks source link

Admin Add Domains Giving 'Not Found' errors for form templates #3

Closed ajdruff closed 10 years ago

ajdruff commented 10 years ago

When accessing the 'Add Forms' menu item under the nomstock-com WordPress plugin addmin menu, receive the following error (typical)

Nomstock_Com_Addons_Simpli_Forms_Modules_Theme::_setCachedTemplate()/137 
(called from : Nomstock_Com_Addons_Simpli_Forms_Modules_Theme::_getCachedTemplate(), line 88)

Error ( Plugin nomstock_com ) Could not load template formStart , 
using requested template file C:/wamp/www/nomstock-dev.com/public_html/wp-content/plugins/nomstock-com/lib/Nomstock/Com/Addons/Simpli/Forms/Themes/Admin/templates/default/formStart.template.php
and alternate default file C:/wamp/www/nomstock-dev.com/public_html/wp-content/plugins/nomstock-com/lib/Nomstock/Com/Addons/Simpli/Forms/Themes/Admin/templates/default/formStart.template.php
Calling method : Nomstock_Com_Addons_Simpli_Forms_Modules_Theme::_getCachedTemplate()

on Line 88 in file C:\wamp\www\nomstock-dev.com\public_html\wp-content\plugins\nomstock-com\lib\Nomstock\Com\Addons\Simpli\Forms\Modules\Theme.php
ajdruff commented 10 years ago

cause: this is the result of changing the directory structure of the the Simpli Forms Addon Theme directory but not updating the Admin and Default themes ( only bootstrap was previously updated).

solution:

1) fixed the directory structure of the Admin and Default theme to match the correctly structured 'Bootstrap' theme directory. 2) edited the metabox\menu20_add_domains_metabox_add_domains.php file to use the new format of the templates. e.g. use 'layout' property with the template name being the same. instead of template=text_bare, you would use the following properties:

 'layout'=> 'bare'
, 'template' => 'text'