• Resolved cirowp

    (@cirowordpress)


    Hi everyone,
    I need help: I’m an administrator of my site but I no longer have the ability to install or delete plugins, update wordpress like a normal administrator. I can create articles, pages, users, but even if I create an administrator user, he does not have the ability to delete or install plugins …. or update WordPress too.
    I found a plugin on my server called “linklove”. Someone install it!!!. I downloaded it to my Pc desktop and my antivirus (AVG) quarantined it: there was a malicious PHP script. In my MySql database the administrator user does not have a normal value wp_metauser a: 1: {s: 13: “administrator”; s: 1: “1”;} … but a: 1: {s: 13: ” administrator “; b: 1;}. I changed this value with the previous one but the problem remains. I installed User Role Editor and even if I see all the right permissions for the administrator user the problems remain. I’ve already updated wordpress to the latest version manually but it doesn’t improve. I activated a default theme and disabled all plugins and the problem remains. Who helps me???

    • This topic was modified 5 years, 5 months ago by cirowp.
Viewing 15 replies - 16 through 30 (of 30 total)
  • Thank you so much. I been trying for couple days to solve that problem but tried this and all back to full functionality.

    thank you ??

    Thank you very much, so helpful!

    Thanks!

    It worked in WP 5.9.3.

    Hi, I have tried looking into my wp-config.php and didn’t see these two lines too.

    define(‘DISALLOW_FILE_EDIT’, true);
    define(‘DISALLOW_FILE_MODS’,true);

    I even added them to my wp-config.php and changed them to ‘false’ but nothing happen. Additionally, I tried deactivating all plugins, switching my theme to twenty-twentytwo, and adding define(‘WP_MEMORY_LIMIT’, ‘512M’) to wp-config.php; but the issue is still not being fixed. Does anyone have other ideas?

    Unbelievable, but 3 years later this still solves the problem. Thank you!!

    @cirowordpress

    Thank you for the contribution.
    But who? what change the value of the define?

    Thank you. Helping in early 2023. Found that i only had to change the
    define(‘DISALLOW_FILE_MODS’,true);
    Other line did not exist in my case

    Hi there,

    I’m also facing this issue. But there already have those lines on wp-config.php file. Any idea how to solve?

    Thank you,

    Helani

    Hello @kellylivdi ,

    Me too, this doesn’t work for me too. Did you solved? Any idea?

    Hey guys,

    The simple way to fix being unable to add or delete WordPress plugins is to change these two lines of code from true to false.

    define(‘DISALLOW_FILE_EDIT’, false);
    define(‘DISALLOW_FILE_MODS’, false);

    this work for me.

    Thank you,

    Helani

    Hi @helani sorry just saw your message today. I believe I found my site was affected by some kind of Adware or malicious advertising malware. I also found some weird codes on my htacess file that repetitively showed every time I deleted and refreshed. Eventually, I used a paid software to remove the malware as it is my company website, so we couldn’t afford to lose anything. Hopefully, this info helps anyone.

    Also had this issue. Thanks for the fix!

    @kellylivdi hello,

    I think too.

    Yes, my site also got infected by malware and that’s unwanted popup ads and it’s called Pub.min.js Push Notifications. you can see here.

    What’s your site malware? Did you solved it?

    Thank you,

    Helani

    Many thanks!

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘Admin can’t install or delete plugins, update wordpress etc’ is closed to new replies.