Zen Cart Logo
Forums / All Other Contributions/Addons / Flexible Footer Menu Multilingual ... for Bootstrap

Flexible Footer Menu Multilingual ... for Bootstrap

Views: 3,657

Results 1 to 20 of 30
12 Jun 2025, 10:14 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Flexible Footer Menu Multilingual ... for Bootstrap

ZC 2.1.0
Bootstrap Clone 3.7.7

When using the delete button to delete a page, I get the following log file:

[12-Jun-2025 08:22:37 UTC] PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_REMOVED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:150Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 150


[12-Jun-2025 08:22:37 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2&action=delete_confirm, IP address: 123.234.255.255
--> PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_REMOVED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:150
Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 150.


[12-Jun-2025 08:22:37 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2&action=delete_confirm, IP address: 123.234.255.255
--> PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_REMOVED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:150
Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 150.
12 Jun 2025, 10:21 AM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Flexible Footer Menu Multilingual ... for Bootstrap

Also, when inserting:

[12-Jun-2025 10:18:51 UTC] PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_INSERTED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:72Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 72


[12-Jun-2025 10:18:51 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2&action=insert, IP address: 123.234.255.255
--> PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_INSERTED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:72
Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 72.


[12-Jun-2025 10:18:51 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2&action=insert, IP address: 123.234.255.255
--> PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_INSERTED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:72
Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 72.
12 Jun 2025, 12:22 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Flexible Footer Menu Multilingual ... for Bootstrap

dbltoe:

Also, when inserting:

[12-Jun-2025 10:18:51 UTC] PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_INSERTED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:72Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 72

[12-Jun-2025 10:18:51 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2&action=insert, IP address: 123.234.255.255
--> PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_INSERTED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:72
Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 72.

[12-Jun-2025 10:18:51 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2&action=insert, IP address: 123.234.255.255
--> PHP Fatal error: Uncaught Error: Undefined constant "SUCCESS_PAGE_INSERTED" in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php:72
Stack trace:
#0 /MY_ADMIN/index.php(28): require()
#1 {main}
thrown in /zc_plugins/BFFM/v2.0.0/admin/flexible_footer_menu2.php on line 72.

Ah, the joys of plugin "inheritance" as that (and SUCCESS_PAGE_REMOVED) message wasn't defined in the original.  v2.0.1 will be forthcoming with the update.
12 Jun 2025, 1:03 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Flexible Footer Menu Multilingual ... for Bootstrap

THANX

If it helps, the process (insert or delete) completed even though the 500 was received.

12 Jun 2025, 5:38 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Flexible Footer Menu Multilingual ... for Bootstrap

GitHub issue (with correction): https://github.com/lat9/bootstrap_ffmm/issues/1

13 Jun 2025, 2:51 AM
#8
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Flexible Footer Menu Multilingual ... for Bootstrap

What is it they say? "No good deed goes unpunished"

I do appreaciate all you have take on in the cause of Zen Cart.

Now getting the following when inserting:

[13-Jun-2025 02:37:55 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2&action=update, IP address: 123.234.255.255, Language id 1#0 /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php(109): zen_debug_error_handler()
#1 /MY_ADMIN/index.php(28): require('/home/texacana/...')
--> PHP Warning: Undefined array key "image_delete" in /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php on line 109.
13 Jun 2025, 12:03 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Flexible Footer Menu Multilingual ... for Bootstrap

dbltoe:

What is it they say? "No good deed goes unpunished"

I do appreaciate all you have take on in the cause of Zen Cart.

Now getting the following when inserting:

[13-Jun-2025 02:37:55 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2&action=update, IP address: 123.234.255.255, Language id 1#0 /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php(109): zen_debug_error_handler()
#1 /MY_ADMIN/index.php(28): require('/home/texacana/...')
--> PHP Warning: Undefined array key "image_delete" in /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php on line 109.

Corrected now as well (thanks); see this GitHub issue for the correction: <https://github.com/lat9/bootstrap_ffmm/issues/2>
13 Jun 2025, 5:51 PM
#10
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Flexible Footer Menu Multilingual ... for Bootstrap

That one is giving:

[13-Jun-2025 17:14:50 UTC] PHP Parse error: syntax error, unexpected token "===" in /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php on line 109[13-Jun-2025 17:14:50 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2, IP address: 123.234.255.255--> PHP Parse error: syntax error, unexpected token "===" in /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php on line 109.
[13-Jun-2025 17:14:50 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2, IP address: 123.234.255.255
--> PHP Parse error: syntax error, unexpected token "===" in /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php on line 109.

How about a suggestion I got from a code checker.

Line 96

if ($col_image = new upload('col_image')) {

to

$col_image = new upload('col_image');
        if ($col_image !== null) {

And, line 109

} elseif ($col_image->filename === 'none' || ($_POST['image_delete'] ?? 0) === '1')

to

} elseif ($col_image->filename === 'none' || (isset($_POST['image_delete']) && $_POST['image_delete'] === '1')) {

I have tried this solution and it works on the current site. The site is running PHP 8.3.20, so the === should not have been a problem.

14 Jun 2025, 1:46 PM
#11
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Flexible Footer Menu Multilingual ... for Bootstrap

dbltoe:

That one is giving:

[13-Jun-2025 17:14:50 UTC] PHP Parse error: syntax error, unexpected token "===" in /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php on line 109[13-Jun-2025 17:14:50 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2, IP address: 123.234.255.255--> PHP Parse error: syntax error, unexpected token "===" in /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php on line 109.
[13-Jun-2025 17:14:50 UTC] Request URI: /MY_ADMIN/index.php?cmd=flexible_footer_menu2, IP address: 123.234.255.255
--> PHP Parse error: syntax error, unexpected token "===" in /zc_plugins/BFFM/v2.0.1/admin/flexible_footer_menu2.php on line 109.

> 
> How about a suggestion I got from a code checker.
> 
> Line 96
> ```
if ($col_image = new upload('col_image')) {

to

$col_image = new upload('col_image');
if ($col_image !== null) {

> 
> And, line 109
> ```
} elseif ($col_image->filename === 'none' || ($_POST['image_delete'] ?? 0) === '1')

to

} elseif ($col_image->filename === 'none' || (isset($_POST['image_delete']) && $_POST['image_delete'] === '1')) {

> 
> I have tried this solution and it works on the current site.  The site is running PHP 8.3.20, so the === should not have been a problem.
The code suggested by the 'code checker' results in the same functionality as that present in the current code.  I'm not sure where that PHP error's coming from.
14 Jun 2025, 4:53 PM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Flexible Footer Menu Multilingual ... for Bootstrap

The code suggested by the 'code checker' results in the same functionality as that present in the current code. I'm not sure where that PHP error's coming from.
Exactly. Maybe it's a quirk with PHP 8.3.20, but it should not be having a problem with the strict comparison. :dontgetit

I've added, deleted, inserted, and edited with no problems since the change.

14 Jun 2025, 7:02 PM
#13
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
392
Plugin Contributions:
6

Re: Flexible Footer Menu Multilingual ... for Bootstrap

I tried inserting and deleting new column header or just a new link and I did not get any log like the one above on PHP 8.3.22 or PHP 8.4.8.

14 Jun 2025, 9:33 PM
#14
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Flexible Footer Menu Multilingual ... for Bootstrap

pilou2:

I tried inserting and deleting new column header or just a new link and I did not get any log like the one above on PHP 8.3.22 or PHP 8.4.8.
If it were easy, it would be occurring on someone else's site.

As lat9 points out, the result of her code and the code suggested to me is the same: a strict comparison of the value.

Even though using lat9's code will result in a deletion, insert, or edit being completed; my setup throws a 500 and shows the afore-mentioned log file. The result is having to go back and refresh the page to see the result.

I'm not in any way inferring that one is better than the other. I'm just passing on info in case anyone else is experiencing the same result.

15 Jun 2025, 2:17 AM
#15
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
392
Plugin Contributions:
6

Re: Flexible Footer Menu Multilingual ... for Bootstrap

You suggested it might be a problem with PHP, did you try with another PHP version?

15 Jun 2025, 2:29 AM
#16
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,806
Plugin Contributions:
15

Re: Flexible Footer Menu Multilingual ... for Bootstrap

I might have time to do that later, but right now I'm fighting other demons on the site.

2 Jul 2025, 1:23 PM
#17
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Flexible Footer Menu Multilingual ... for Bootstrap

v2.0.1 of the plugin is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2397

This release contains changes associated with these GitHub issues:

#1: Correct missing admin language constants.
#2: Correct admin PHP warning for missing posted variable.

15 Feb 2026, 2:34 PM
#18
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Flexible Footer Menu Multilingual ... for Bootstrap

Do I need to download the old flexible Footer Menu and This one to work or just the new one for the Bootstrap Template?

16 Feb 2026, 12:28 PM
#19
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,097
Plugin Contributions:
56

Re: Flexible Footer Menu Multilingual ... for Bootstrap

wmorris:

Do I need to download the old flexible Footer Menu and This one to work or just the new one for the Bootstrap Template?
Just this newer one for the Bootstrap Template.

30 Mar 2026, 10:05 AM
#20
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Flexible Footer Menu Multilingual ... for Bootstrap

I am testing the bootstrap and this flexible Footer, but the social media icons do not show. Code seems to be there in the set up but not showing on the storefront. Any ideas why? Thank you.