Koozali.org: home of the SME Server

[solved] smeserver-wordpress, unable to login, passwd field is disabled

Offline RDMidtun

  • *
  • 27
  • +0/-0
After a fresh install and a restore from 9.2, I successfully installed the smeserver-wordpress. After installation I can visit my wordpress site and it looks like and works as it was on my 9.2 installation. But, I am not able to login to adminstrate my site anymore. This is because the Password field is not enabled (not possible to type into).
« Last Edit: August 14, 2021, 04:21:37 PM by Jean-Philippe Pialasse »

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #1 on: August 13, 2021, 05:53:52 PM »
Note that this bug is set as resolved, but not closed as yet, and the contrib has not been released. So YMMV.

Can you describe exactly how you installed this please?

Did you have any plugins installed previously?

Can you show this without the sensitive bits:

Code: [Select]
config show wordpress
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline RDMidtun

  • *
  • 27
  • +0/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #2 on: August 13, 2021, 06:08:11 PM »
I did not know that there was a bug already for this. Anyway, I knew the contrib was not released yet, but thought you wanted some help testing it out. If it is to far from being released, I can back out and un-install waiting for it to be released.

Installation
Code: [Select]
[code][root@e-smith ~]# yum install --enablerepo=smetest smeserver-wordpress

Yes, I have had the wordpress site for several years and have various plugins installed. But, since I can not get into the admin, I can not give you an exact list of the plugins. Is there some folder in the installation that can give me this info?

Code: [Select]
[root@e-smith ~]# config show wordpress
wordpress=service
    AllowOverrideAll=disabled
    BackupFiles=enabled
    DbName=wordpress
    DbPassword=xxxxxxxxx
    DbUser=wordpress
    Https=enabled
    Indexes=disabled
    Name=Wordpress weblog
    PublicAccess=global
    SymLinks=disabled
    WpLang=en
    status=enabled
[root@e-smith ~]#
« Last Edit: August 13, 2021, 06:11:24 PM by RDMidtun »

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #3 on: August 13, 2021, 09:35:58 PM »
I've moved the wordpress migration bug 11428 back to in progress, failed to install on a test VM..no deps, more investigation needed

--
qui scribit bis legit

Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #4 on: August 14, 2021, 03:03:59 AM »
I've had it installed for a month or so with no obvious issues. Can log into admin ok. And it just sent me an email stating it has auto updated to wordpress 5.8.
 grep wordpress yum_installed
smeserver-wordpress.noarch=package|Repo|@smetest|Version|1.2-11.el7.sme
...

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #5 on: August 14, 2021, 03:08:10 AM »
Yep, created a new VM, had no issues installing etc, old VM had been used for many testa nd in particular mysql prodding and poking...

So far so good
bug back to resolved
--
qui scribit bis legit

Offline sages

  • *
  • 182
  • +0/-0
    • http://www.sages.com.au
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #6 on: August 14, 2021, 03:11:51 AM »
Plugins activated:
WP fail2ban

Akismet installed but not activated.
...

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #7 on: August 14, 2021, 03:13:28 AM »
Clean VM - old one must have had issues form other installs and mucking about with mysql etc

yum install smeserver-wordpress --enablerepo=smetest,epel

then
https://192.168.2.110/wordpress

and I am at the setup forms etc logged in and at admin page, so looks good as far as a clean install goes

Added,: dont think epel repo is needed
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #8 on: August 14, 2021, 03:34:23 AM »
After a fresh install and a restore from 9.2, I successfully installed the smeserver-wordpress. After installation I can visit my wordpress site and it looks like and works as it was on my 9.2 installation. But, I am not able to login to adminstrate my site anymore. This is because the Password field is not enabled (not possible to type into).

so at worst the wordpress mysql db should be OK, the backup should have restored that to your sme10, are you able to confirm that?

As far as I know an install does more than just an update, it installs the lates wordpress as part of that install, I would be looking at the db for username and password, just me...others may have more knowledge here, I am not a worpress user

Added: lots of mentions about disabling jetpack in google, dunno if you have this installed or even how to disable
« Last Edit: August 14, 2021, 03:40:28 AM by TerryF »
--
qui scribit bis legit

Offline RDMidtun

  • *
  • 27
  • +0/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #9 on: August 14, 2021, 10:18:56 AM »
so at worst the wordpress mysql db should be OK, the backup should have restored that to your sme10, are you able to confirm that?

As far as I know an install does more than just an update, it installs the lates wordpress as part of that install, I would be looking at the db for username and password, just me...others may have more knowledge here, I am not a worpress user

Added: lots of mentions about disabling jetpack in google, dunno if you have this installed or even how to disable

The fact that the site works as before, points in the direction that the mysql and login to the database is working. Upon installation, my site is probably upgraded to the newest wordpress version. My guess is that this version have an issue regarding the plugins installed. Googling gives info regarding issues with the jetpack plugin. Here are my plugins:

Code: [Select]
[root@e-smith wordpress]# ls wp-content/plugins/
akismet                          geotag     jetpack                      nextgen-gallery      restrict-author-posting
avh-first-defense-against-spam   hello.php  mce-table-buttons            nextgen-gallery.zip  xml-google-maps
category-specific-rss-feed-menu  index.php  mce-table-buttons.1.0.2.zip  php-enkoder          xml-google-maps.1.12.1.zip
[root@e-smith wordpress]#

Is there a way I can disable the plugins manually by tweaking php files? Could I remove the plugin folder and thereby de-activate a plugin?

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #10 on: August 14, 2021, 10:53:33 AM »
Yep, lots of chat about jetpack plugin..prime suspect

May help - https://www.greengeeks.com/tutorials/how-to-turn-off-plugins-without-wp-admin-access/
--
qui scribit bis legit

Offline RDMidtun

  • *
  • 27
  • +0/-0
Re: smeserver-wordpress, unable to login, passwd field is disabled
« Reply #11 on: August 14, 2021, 01:00:51 PM »
Yep, lots of chat about jetpack plugin..prime suspect

May help - https://www.greengeeks.com/tutorials/how-to-turn-off-plugins-without-wp-admin-access/

The problem was fixed by renaming the jetpack plugin folder. Renaming a plugin folder is causing an error in the loading of the plugin and the result is that the plugin is de-activated. After de-activation the password field was enabled for input.

Code: [Select]
[root@e-smith plugins]# cd /usr/share/wordpress/wp-content/plugins
[root@e-smith plugins]# mv jetpack jetpack_deactivate

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: [solved] smeserver-wordpress, unable to login, passwd field is disabled
« Reply #12 on: August 14, 2021, 05:23:47 PM »
Quelle surprise ;-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation