• Resolved pedjas

    (@pedjas)


    For some time plugin worked fine. But since yesterday I noticed it got wild.

    If I use AQL in a template, it starts showing this error:

    Notice: Undefined index: queries in /public_html/wp-content/plugins/advanced-query-loop/includes/query-loop.php on line 23 Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/advanced-query-loop/includes/query-loop.php on line 23

    Strangely, this happens only when site is viewed by common visitor. When user is logged in to site, errors do not show. It actually may be messed up for some time but I did not notice as I am mostly logged in when on site.

    Content for the page is displayed correctly. Even AQL works, except it displays this notice.

    I tried to turn off other plugins just to check if some of them messes up query, but failed to find one.

    I guess simple validity check could solve an issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ryan Welcher

    (@welcher)

    Sorry about this! I have created a fix and will release it today.

    Plugin Author Ryan Welcher

    (@welcher)

    I just release 1.4.1 which will address these issues. I’ll close this out but if they persist, please let me know ASAP.

    Thanks for using AQL!

    Thread Starter pedjas

    (@pedjas)

    Not it reprots similar error but for meta_query 

    Notice: Undefined index: meta_query in /public_html/wp-content/plugins/advanced-query-loop/includes/query-loop.php on line 78

    This is Advanced Query Loop code

    <!-- wp:query {"queryId":0,"query":{"perPage":"36","pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"taxQuery":null,"date_query":"","multiple_posts":[]},"displayLayout":{"type":"flex","columns":3},"namespace":"advanced-query-loop","editorskit":{"devices":false,"desktop":true,"tablet":true,"mobile":true,"loggedin":true,"loggedout":true,"acf_visibility":"","acf_field":"","acf_condition":"","acf_value":"","migrated":false,"unit_test":false},"boldblocks":{"grid":{"columns":{"lg":{"value":"none","inherit":null},"md":{"inherit":"lg"},"sm":{"inherit":null}},"gap":{"lg":{"value":{"row":"1rem","column":"1rem"},"inherit":null},"md":{"inherit":"lg"},"sm":{"inherit":"lg"}}},"carousel":{"speed":300,"effect":{"name":"slide","settings":{}},"loopType":"infinite","autoplay":{"enable":true,"delay":3000},"slidesPerView":1,"spaceBetween":0,"enableResponsive":false,"breakpoints":{"lg":{"value":{"slidesPerView":4,"spaceBetween":0},"inherit":null},"md":{"inherit":"lg"},"sm":{"inherit":"lg"}},"pagination":{"enable":true,"size":"12px","spacing":"10px","color":"","inactiveColor":"","opacity":0.3,"dynamicBullets":true,"horizontalGap":"5px"},"navigation":{"enable":false,"size":"44px","spacing":"10px","color":""}}}} -->
    • This reply was modified 1 year, 4 months ago by pedjas.
    Plugin Author Ryan Welcher

    (@welcher)

    This should be fixed with the release of 1.4.2. Again, please let me know if it persists or other problems arise. Thanks!

    Thread Starter pedjas

    (@pedjas)

    It seems OK so far. Good work. Thanks!

    There are few other issues i described in other topics.

    And last night I stumbled on another one regarding pagination. I wIll post about it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Undefined index: queries on query-loop.php on line 23’ is closed to new replies.