• Resolved Eder Ribeiro

    (@ribeiroeder)


    I noticed the log error below after updating my plugins on multiple installations. I disabled and enabled plugin by plugin until I found out what caused the error: Litespeed versions 5.5 and 5.5.1. Version 5.4 and earlier do not generate this error.

    —–
    [25-Jul-2023 07:15:29 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/XXX/public_html/wp-admin/includes/plugin.php on line 1780
    ——-

    WordPress version: 6.2.2
    PHP version: 7.4

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    could you please try use a clean WP 6.2.2 and only install LSCWP , and see if it generates such error ?

    Thread Starter Eder Ribeiro

    (@ribeiroeder)

    I managed to identify the cause of the error, there was a function remove_menu_page being called in add_action with admin_init, the correct thing is to call in add_action admin_menu.

    Despite being an error, it is curious that it only appeared using the last two versions of litespeed, without caching plugin or litespeed in version 5.4 this did not happen.

    Anyway thanks for the attention!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Warning | plugin.php on line 1780’ is closed to new replies.