Hi
Can someone who is using this plugin share their web url with me so I can see it in action?
PM me if you prefer, thanks.
Hi
Can someone who is using this plugin share their web url with me so I can see it in action?
PM me if you prefer, thanks.
Back again.
Zen Cart 2.1.0
News Box Manager 3.2.1
Testing the insertion of a new "news", and get this message:
"WARNING: An Error occurred, please let us know! If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you entered valid data."
The log reports:
[25-Jun-2025 11:54:15 Europe/London] Request URI: /path_to_admin_dir/index.php?cmd=news_box_manager1&action=insert&nType=1, IP address: 93.48.151.7, Language id 2
#0 /path_to_admin_dir/news_box_manager.php(107): zen_debug_error_handler()
#1 /path_to_admin_dir/news_box_manager1.php(12): require('/home3/tesoreri...')
#2 /path_to_admin_dir/index.php(16): require('/home3/tesoreri...')
--> PHP Warning: Undefined array key "news_status" in /path_to_admin_dir/news_box_manager.php on line 107.
If it can help I do have the admin_dir/includes/languages/italian/lang.news_box_manager.php
The steps:
check > enabled
dates > blank
Italian title > titolo
Italian content > contenuto
English title > title
English content > content
metatags > blank
however did try also with metatags
Having only Italian users the real title and content are inserted in the Italian fields whereas for the English using only "placeholder" single words.
Last edited by keneso; 25 Jun 2025 at 12:56 PM.
@keneso, find this section (lines 539-545) of /admin/news_box_manager.php
and make the highlighted changeCode:<div class="form-group"> <?= zen_draw_label(TEXT_NEWS_STATUS, 'news_status', 'class="col-sm-3 control-label"') ?> <div class="col-sm-9 col-md-6"> <label class="radio-inline"><?= zen_draw_radio_field('news_status', '1', ($nInfo->news_status === '1')) . TEXT_ENABLED ?></label> <label class="radio-inline"><?= zen_draw_radio_field('news_status', '0', ($nInfo->news_status === '0')) . TEXT_DISABLED ?></label> </div> </div>
Does that correct the issue?Code:<div class="form-group"> <?= zen_draw_label(TEXT_NEWS_STATUS, 'news_status', 'class="col-sm-3 control-label"') ?> <div class="col-sm-9 col-md-6"> <label class="radio-inline"><?= zen_draw_radio_field('news_status', '1', ($nInfo->news_status === '1')) . TEXT_ENABLED ?></label> <label class="radio-inline"><?= zen_draw_radio_field('news_status', '0', ($nInfo->news_status !== '1')) . TEXT_DISABLED ?></label> </div> </div>
Thanks, but no joy. Same Warning.
I just installed v3.2.2-beta1 (storefront change only) on a local zc210 site. Added a new article with no error logs.
The change I suggested above ensures that one of the Enabled/Disabled radio-buttons is selected when the insert-entry form is displayed.
Yes, I noticed that, but like said I had checked it anyway, and for some reason is returning the warning.
I noticed that the error log has been generated for the attempts done by a limited admin, whereas not generated for the power admin, getting that by the reported time of the erro logs.