*

Bikram Shakya

  • *
  • 14 posts
After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« on: December 11, 2020, 12:49:49 PM »
[11-Dec-2020 16:51:35 Asia/Kathmandu] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/hamronep/public_html/oc-includes/osclass/frm/Item.form.class.php on line 682
[11-Dec-2020 16:51:35 Asia/Kathmandu] PHP Warning:  Invalid argument supplied for foreach() in /home/hamronep/public_html/oc-includes/osclass/frm/Form.form.class.php on line 40
[11-Dec-2020 16:53:05 Asia/Kathmandu] PHP Warning:  Illegal string offset 'pk_i_id' in /home/hamronep/public_html/oc-content/themes/realos/search-sidebar.php on line 4
[11-Dec-2020 16:53:05 Asia/Kathmandu] PHP Warning:  Cannot assign an empty string to a string offset in /home/hamronep/public_html/oc-content/themes/realos/search-sidebar.php on line 4
[11-Dec-2020 16:53:05 Asia/Kathmandu] PHP Warning:  Illegal string offset 'pk_i_id' in /home/hamronep/public_html/oc-content/themes/realos/search-sidebar.php on line 13
[11-Dec-2020 16:53:05 Asia/Kathmandu] PHP Warning:  Illegal string offset 'pk_i_id' in /home/hamronep/public_html/oc-content/themes/realos/search-sidebar.php on line 124
[11-Dec-2020 16:53:26 Asia/Kathmandu] PHP Warning:  Cannot assign an empty string to a string offset in /home/hamronep/public_html/oc-includes/osclass/ItemActions.php on line 170
[11-Dec-2020 17:02:49 Asia/Kathmandu] PHP Warning:  Illegal string offset 'pk_i_id' in /home/hamronep/public_html/oc-content/themes/realos/search-sidebar.php on line 4
[11-Dec-2020 17:02:49 Asia/Kathmandu] PHP Warning:  Cannot assign an empty string to a string offset in /home/hamronep/public_html/oc-content/themes/realos/search-sidebar.php on line 4
[11-Dec-2020 17:02:49 Asia/Kathmandu] PHP Warning:  Illegal string offset 'pk_i_id' in /home/hamronep/public_html/oc-content/themes/realos/search-sidebar.php on line 13
[11-Dec-2020 17:02:49 Asia/Kathmandu] PHP Warning:  Illegal string offset 'pk_i_id' in /home/hamronep/public_html/oc-content/themes/realos/search-sidebar.php on line 124

« Last Edit: December 11, 2020, 12:54:04 PM by Bikram Shakya »

*

Bikram Shakya

  • *
  • 14 posts
Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #1 on: December 11, 2020, 12:55:07 PM »
So i revert back to 4.0

*

MB Themes

Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #2 on: December 11, 2020, 12:55:58 PM »
@Bikram Shakya
There is no error at all in your log.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Bikram Shakya

  • *
  • 14 posts
Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #3 on: December 11, 2020, 12:59:04 PM »
@Bikram Shakya
There is no error at all in your log.


 :-X :'(

*

MB Themes

Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #4 on: December 11, 2020, 03:12:30 PM »
I would guess you either have wrong version num in files or oc_t_admin table has not been properly updated.
You can even update it manually, there should be 3 new cols.

Code: [Select]
s_moderator_access VARCHAR(1000) NULL
i_login_fails INT(3) NULL DEFAULT 0
dt_login_fail_date DATETIME NULL

However, if everything is done in standard way, this will not be issue. You would recognize it in case you are logging as admin, but you cannot login and no error message is shown (in that case you know it failed to retrieve record from db due to different set of columns)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Bikram Shakya

  • *
  • 14 posts
Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #5 on: December 12, 2020, 09:14:46 AM »
I would guess you either have wrong version num in files or oc_t_admin table has not been properly updated.
You can even update it manually, there should be 3 new cols.

Code: [Select]
s_moderator_access VARCHAR(1000) NULL
i_login_fails INT(3) NULL DEFAULT 0
dt_login_fail_date DATETIME NULL

However, if everything is done in standard way, this will not be issue. You would recognize it in case you are logging as admin, but you cannot login and no error message is shown (in that case you know it failed to retrieve record from db due to different set of columns)


where to apply the code? :(

*

MB Themes

Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #6 on: December 14, 2020, 10:43:06 AM »
@Bikram
It's database structure.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Bikram Shakya

  • *
  • 14 posts
Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #7 on: December 20, 2020, 12:18:30 PM »
Can you tell me some more clue

*

Bikram Shakya

  • *
  • 14 posts
Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #8 on: December 20, 2020, 12:29:48 PM »
[20-Dec-2020 17:11:48 Asia/Kathmandu] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/hamronep/public_html/oc-includes/osclass/frm/Item.form.class.php on line 682
[20-Dec-2020 17:11:48 Asia/Kathmandu] PHP Warning:  Invalid argument supplied for foreach() in /home/hamronep/public_html/oc-includes/osclass/frm/Form.form.class.php on line 40
[20-Dec-2020 17:12:02 Asia/Kathmandu] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/hamronep/public_html/oc-includes/osclass/frm/Item.form.class.php on line 682
[20-Dec-2020 17:12:02 Asia/Kathmandu] PHP Warning:  Invalid argument supplied for foreach() in /home/hamronep/public_html/oc-includes/osclass/frm/Form.form.class.php on line 40

*

MB Themes

Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #9 on: December 20, 2020, 01:20:50 PM »
@Bikram
Thanks for feedback, both will be fixed in 4.2.2
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Bikram Shakya

  • *
  • 14 posts
Re: After Upgrading 4.0 to 4.2.1 I couldnt able to login in oc-admin
« Reply #10 on: December 20, 2020, 02:24:43 PM »
Ok sir :)