Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2025
    Location
    UK
    Posts
    7
    Plugin Contributions
    0

    Default Adding new Banner

    Getting this error when adding new banner

    ******* = admin dir

    [23-Apr-2025 20:15:45 UTC] Request URI: /test/*******/index.php?cmd=banner_manager&action=add, IP address: **.***.132.213
    --> PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/spiceshopuk/public_html/test/includes/classes/upload.php:140
    Stack trace:
    #0 /home/spiceshopuk/public_html/test/*******/banner_manager.php(134): upload->save()
    #1 /home/spiceshopuk/public_html/test/*******/index.php(16): require('/home/spiceshop...')
    #2 {main}
    thrown in /home/spiceshopuk/public_html/test/includes/classes/upload.php on line 140.


    Website shows 500 error

    Any ideas?

  2. #2
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,597
    Plugin Contributions
    0

    Default Re: Adding new Banner

    Quote Originally Posted by curryman View Post
    Getting this error when adding new banner

    ******* = admin dir

    [23-Apr-2025 20:15:45 UTC] Request URI: /test/*******/index.php?cmd=banner_manager&action=add, IP address: **.***.132.213
    --> PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/spiceshopuk/public_html/test/includes/classes/upload.php:140
    Stack trace:
    #0 /home/spiceshopuk/public_html/test/*******/banner_manager.php(134): upload->save()
    #1 /home/spiceshopuk/public_html/test/*******/index.php(16): require('/home/spiceshop...')
    #2 {main}
    thrown in /home/spiceshopuk/public_html/test/includes/classes/upload.php on line 140.


    Website shows 500 error

    Any ideas?
    First of all, what zen cart version are you using and what PHP version?

  3. #3
    Join Date
    Apr 2025
    Location
    UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: Adding new Banner

    Hi,

    Zencart 2.1

    PHP 8.0

  4. #4
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,294
    Plugin Contributions
    1

    Default Re: Adding new Banner

    Yes, this was a bug and occurs when saving a banner without an image. If you replace your copy of admin/banner_manager.php with the latest from the GitHub repo you should be good to go.

    https://github.com/zencart/zencart/b...er_manager.php
    Simon

  5. #5
    Join Date
    Apr 2025
    Location
    UK
    Posts
    7
    Plugin Contributions
    0

    Default Re: Adding new Banner

    Great worked, many thanks

 

 

Similar Threads

  1. Adding new banner problem
    By Typhoon in forum Basic Configuration
    Replies: 2
    Last Post: 13 Aug 2009, 04:54 AM
  2. New Banner, New banner location
    By varnco in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jun 2009, 05:20 PM
  3. Adding a Flash banner
    By pb4 in forum Basic Configuration
    Replies: 2
    Last Post: 9 Feb 2009, 03:24 PM
  4. New Category, New Banner and Logo
    By batteryman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jan 2008, 12:22 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR