+ Reply to Thread
Results 1 to 7 of 7

Thread: Error log:Suddenly this error starts appearing

  1. #1

    Error log:Suddenly this error starts appearing

    Hello
    Suddenly this error starts appearing
    [27-Mar-2024 13:01:26 Europe/Minsk] PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home2/site/public_html/site.com/includes/classes/AddListing.php:1672
    Stack trace:
    #0 /home2/site/public_html/site.com/includes/classes/AddListing.php(1672): in_array('motors', NULL)
    #1 /home2/site/public_html/site.com/includes/classes/AddListing.php(645): Flynax\Classes\AddListing->checkAccountAbilities(NULL, Array)
    #2 /home2/site/public_html/site.com/includes/classes/AddListing.php(151): Flynax\Classes\AddListing->stepSingle()
    #3 /home2/site/public_html/site.com/includes/controllers/add_listing.inc.php(101): Flynax\Classes\AddListing->init(Array, NULL, Array)
    #4 /home2/site/public_html/site.com/index.php(242): require_once('/home2/site...')
    #5 {main}
    thrown in /home2/site/public_html/site.com/includes/classes/AddListing.php on line 1672

    Any advice?

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    Hello,

    I don't know how to reproduce this error but you can try to use this fix:

    in includes/controllers/add_listing.inc.php

    replace:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code

  3. #3
    [QUOTE=Rudi;38979]Hello,

    I don't know how to reproduce this error but you can try to use this fix:

    in includes/controllers/add_listing.inc.php

    replace:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    i follow this
    https://forum.flynax.com/showthread....d_listing_deny

  4. #4
    any update dear rudi

  5. #5
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    You need to use my solution below

  6. #6
    Fatal error: Uncaught Error: Flynax\Classes\AddListing::init(): Argument #2 ($account_info) cannot be passed by reference in
    /includes/controllers/add_listing.inc.php:104 Stack trace: #0 /index.php(242): require_once() #1 {main} thrown in
    /includes/controllers/add_listing.inc.php on line 104

  7. #7
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    I think you did something wrong in your code

+ Reply to Thread