Results 1 to 10 of 30

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default 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:

    Code:
    [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.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Flexible Footer Menu Multilingual ... for Bootstrap

    Quote Originally Posted by dbltoe View Post
    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:

    Code:
    [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

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Flexible Footer Menu Multilingual ... for Bootstrap

    That one is giving:

    Code:
    [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
    Code:
    if ($col_image = new upload('col_image')) {
    to
    Code:
    $col_image = new upload('col_image');
            if ($col_image !== null) {
    And, line 109
    Code:
    } elseif ($col_image->filename === 'none' || ($_POST['image_delete'] ?? 0) === '1')
    to
    Code:
    } 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.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,870
    Plugin Contributions
    96

    Default Re: Flexible Footer Menu Multilingual ... for Bootstrap

    Quote Originally Posted by dbltoe View Post
    That one is giving:

    Code:
    [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
    Code:
    if ($col_image = new upload('col_image')) {
    to
    Code:
    $col_image = new upload('col_image');
            if ($col_image !== null) {
    And, line 109
    Code:
    } elseif ($col_image->filename === 'none' || ($_POST['image_delete'] ?? 0) === '1')
    to
    Code:
    } 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.

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default 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.

    I've added, deleted, inserted, and edited with no problems since the change.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    325
    Plugin Contributions
    7

    Default 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.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Flexible Footer Menu Multilingual ... for Bootstrap

    Quote Originally Posted by pilou2 View Post
    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.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. v154 Flexible Footer Menu Multilingual [Support Thread]
    By rbarbour in forum All Other Contributions/Addons
    Replies: 131
    Last Post: 29 Jun 2025, 03:06 AM
  2. Flexible Footer Columns Menu for 1.5.x
    By rbarbour in forum All Other Contributions/Addons
    Replies: 88
    Last Post: 23 Apr 2022, 01:18 PM
  3. v155 Flexible Footer Menu
    By MCS_Computers in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 9 Jul 2018, 10:59 AM
  4. v155 Flexible Footer menu sanitation issue?
    By meijei in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 15 Mar 2017, 05:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg