During adding new product I receive the following issue
[2024-07-24 22:26:08] request.CRITICAL: Uncaught PHP Exception Error: "Call to a member function getAdminLink() on null" at /var/www/html/var/cache/prod/smarty/compile/theme_fashion5/b2/3e/ab/b23eab283e66552052cd6c0dfa61116be552ec10_0.file.addtab.tpl.php line 59 {"exception":"[object] (Error(code: 0): Call to a member function getAdminLink() on null at /var/www/html/var/cache/prod/smarty/compile/theme_fashion5/b2/3e/ab/b23eab283e66552052cd6c0dfa61116be552ec10_0.file.addtab.tpl.php:59)"} []
Same issue exists in single product page
PrestaShop: 8.1.7
PHP: 8.1.2
Theme: Fashion 5
Issue didnt exist until I switched theme to fashion5
I investigated it a bit and it looks like the issue is in this module `Modulefieldtsizeguide` delivered by FieldThemes (I think). So maybe you can fix this and release a new version of the template?
<div id="Modulefieldtsizeguide"> <h3>{l s='Add or modify customizable properties' mod='fieldsizechart'}</h3>
{if isset($display_common_field) && $display_common_field} <div class="alert alert-info">{l s='Warning, if you change the value of fields with an orange bullet %s, the value will be changed for all other shops for this product' mod='fieldsizechart' sprintf=$bullet_common_field}</div> {/if} <div class="form-group"> <label class="form-control-label" for="id_fieldsizechart">{l s='Select from created guides' mod='fieldsizechart'}</label> <div class="row"> <div class="col-lg-6 col-xs-12"> <select name="id_fieldsizechart" id="id_fieldsizechart" class="sizecharts_select" data-toggle="select2"> <option value="0">- {l s='Choose (optional)' mod='fieldsizechart'} -</option> {if isset($guides)} {foreach from=$guides item=guide} <option value="{$guide.id_guide}" {if isset($selectedGuide) && ($guide.id_guide == $selectedGuide)}selected="selected"{/if}>{$guide.title}</option> {/foreach} {/if} </select> </div> <div class="col-lg-1 col-xs-1">{l s='Or' mod='fieldsizechart'}</div> <div class="col-lg-5 col-xs-11"> <a class="btn btn-link bt-icon confirm_leave" target="_blank" style="margin-bottom:0" href="{$link->getAdminLink('AdminModules')}&configure=fieldsizechart&addGuide=1"> <i class="material-icons"></i> {l s='Create new guide' mod='fieldsizechart'} <i class="icon-external-link-sign"></i> </a> </div> </div> </div> </div>
During adding new product I receive the following issue
[2024-07-24 22:26:08] request.CRITICAL: Uncaught PHP Exception Error: "Call to a member function getAdminLink() on null" at /var/www/html/var/cache/prod/smarty/compile/theme_fashion5/b2/3e/ab/b23eab283e66552052cd6c0dfa61116be552ec10_0.file.addtab.tpl.php line 59 {"exception":"[object] (Error(code: 0): Call to a member function getAdminLink() on null at /var/www/html/var/cache/prod/smarty/compile/theme_fashion5/b2/3e/ab/b23eab283e66552052cd6c0dfa61116be552ec10_0.file.addtab.tpl.php:59)"} []
Same issue exists in single product page
PrestaShop: 8.1.7
PHP: 8.1.2
Theme: Fashion 5
Issue didnt exist until I switched theme to fashion5
Hi Damian,
We sincerely apologize for the inconvenience!
Please provide us FTP credentials and Back Office access to your site.
We will handle the problem to help you.
Thank you for your feedback!
Best Regards,
Martin - FieldThemes
Ahhh, I don't want to do that.
I investigated it a bit and it looks like the issue is in this module `Modulefieldtsizeguide` delivered by FieldThemes (I think).
So maybe you can fix this and release a new version of the template?
<div id="Modulefieldtsizeguide">
<h3>{l s='Add or modify customizable properties' mod='fieldsizechart'}</h3>
{if isset($display_common_field) && $display_common_field}
<div class="alert alert-info">{l s='Warning, if you change the value of fields with an orange bullet %s, the value will be changed for all other shops for this product' mod='fieldsizechart' sprintf=$bullet_common_field}</div>
{/if}
<div class="form-group">
<label class="form-control-label" for="id_fieldsizechart">{l s='Select from created guides' mod='fieldsizechart'}</label>
<div class="row">
<div class="col-lg-6 col-xs-12">
<select name="id_fieldsizechart" id="id_fieldsizechart" class="sizecharts_select" data-toggle="select2">
<option value="0">- {l s='Choose (optional)' mod='fieldsizechart'} -</option>
{if isset($guides)}
{foreach from=$guides item=guide}
<option value="{$guide.id_guide}" {if isset($selectedGuide) && ($guide.id_guide == $selectedGuide)}selected="selected"{/if}>{$guide.title}</option>
{/foreach}
{/if}
</select>
</div>
<div class="col-lg-1 col-xs-1">{l s='Or' mod='fieldsizechart'}</div>
<div class="col-lg-5 col-xs-11">
<a class="btn btn-link bt-icon confirm_leave" target="_blank" style="margin-bottom:0" href="{$link->getAdminLink('AdminModules')}&configure=fieldsizechart&addGuide=1">
<i class="material-icons"></i> {l s='Create new guide' mod='fieldsizechart'} <i class="icon-external-link-sign"></i>
</a>
</div>
</div>
</div>
</div>
Hi Damian,
Thank you so much for your feedback!
Best Regards,
Martin - FieldThemes
Hi
We will reinstall and test it, thank you for your feedback
You can temporarily disable that module to edit your page
Thanks
Best Regards,
Andrea - FieldThemes Support Team