PHPBB Inactive User Manager/Reminder

Gateway error - PHPBB Inactive User Manager/Reminder

Gateway error

by wads24 » Sat May 25, 2024 1:20 am

Tried to install this extension and got 504 gateway error. Then tried to delete data and got this error. Please advise how to resolve.
phpBB 3.3.11

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/phpbb/db/tools/tools.php on line 1181: Undefined index: i
Return to the index page
General Error
SQL ERROR [ mysqli ]

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DEFAULT 'u' NOT NULL' at line 1 [1064]

SQL

ALTER TABLE `phpbb_users` ADD COLUMN `0` DEFAULT 'u' NOT NULL
I did revert back to extension v 1.1.10 and then I was able to delete data
Thanks in advance for a reply.
User avatar
wads24
Registered User
Posts: 685
Joined: Fri Jun 10, 2005 4:44 am
Name: James

Re: Gateway error

by andreask » Sat May 25, 2024 6:26 pm

Hi, did you delete the previous files?
I would suggest to delete the previous files and install the new as a fresh install.
There is no syntax error in any of the migration files, the ext was tested by me several times and by the validation team.
So this error is kind of weird.
Try to do a fresh install and let me know if you would like.
All the best.
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
andreask
Registered User
Posts: 773
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: Gateway error

by SpIdErPiGgY » Sat Jun 29, 2024 2:44 am

Same problem

Code: Select all

SQL

ALTER TABLE `phpbb_users` ADD COLUMN `0` DEFAULT 'u' NOT NULL

Code: Select all

[Sat Jun 29 04:11:20.757785 2024] [proxy_fcgi:error] [pid 24380:tid 140413587404544] [client 2a02:1812:1e10:400:ad77:3d4c:36dc:bf7a:0] AH01071: Got error 'PHP message: PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 132120776 bytes) in /var/www/vhosts/myarea51secrets.com/httpdocs/phpbb/db/driver/driver.php on line 1112', referer: https://www.myarea51secrets.com/adm/index.php?i=acp_extensions&sid=52cef75dae5d1a7acaff498c65cc8cd2&mode=main&action=enable_pre&ext_name=andreask%2Fium
phpBB 3.3.12
PHP 8.3.8
MySQL(i) 10.11.8-MariaDB-deb10
Image
User avatar
SpIdErPiGgY
Registered User
Posts: 309
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: Gateway error

by andreask » Sun Jun 30, 2024 12:58 pm

Hello,

Would you be willing to do some troubleshooting work?

Could you please do the following?

open file
andreask/ium/migrations/update_120.php
find:

Code: Select all

'ium_request_type'
Please note the single quotes!
The number line should be #57

replace with:

Code: Select all

'ium_request_type'=> array('VCHAR:10', ''),
save the file and try again to install the ext.

Please let me know of the outcome.

Many thanks.
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
andreask
Registered User
Posts: 773
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: Gateway error

by SpIdErPiGgY » Mon Jul 01, 2024 5:17 pm

andreask wrote:Hello,

Would you be willing to do some troubleshooting work?

Could you please do the following?

open file
andreask/ium/migrations/update_120.php
find:

Code: Select all

'ium_request_type'
Please note the single quotes!
The number line should be #57

replace with:

Code: Select all

'ium_request_type'=> array('VCHAR:10', ''),
save the file and try again to install the ext.

Please let me know of the outcome.

Many thanks.
I click on enable, after a few seconds the page stops loading, but the enable page is still there.
A few modules are installed, but the ext is still disabled (not installed)

Video: https://www.youtube.com/watch?v=dAnglZ2NeQ4
Image
User avatar
SpIdErPiGgY
Registered User
Posts: 309
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: Gateway error

by andreask » Wed Jul 03, 2024 2:17 pm

Hello,

Could you please paste here the content of the file andreask/ium/migrations/update_120.php
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
andreask
Registered User
Posts: 773
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: Gateway error

by SpIdErPiGgY » Wed Jul 03, 2024 6:03 pm

andreask wrote:Hello,

Could you please paste here the content of the file andreask/ium/migrations/update_120.php

Code: Select all

<?php

/**
* This file is part of the phpBB Forum extension package
* IUM (Inactive User Manager).
*
* @copyright (c) 2016 by Andreas Kourtidis
* @license   GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the CREDITS.txt file.
*/

namespace andreask\ium\migrations;

use phpbb\db\migration\migration;

/**
 * Add needed data to database of phpbb
 */

class update_120 extends migration
{

	public function update_data()
	{
		return array(
			array('config.add', array('andreask_ium_interval2', 0)),
			array('config.add', array('andreask_ium_interval3', 0)),
			array('config.add', array('andreask_ium_respect_user_choice', 1)),
			array('config.add', array('andreask_ium_ignore_limit', 1)),
			array('config.add', array('andreask_ium_no_reply', '')),
			array('config.remove', array('reminder_limit')),
		);
	}

  static public function depends_on()
  {
	  return ['andreask\ium\migrations\add_data'];
  }

  public function update_schema()
  {
	return [
		'drop_columns' =>[
			$this->table_prefix . 'users'=>
			['ium_request_type',],
		],
	];
  }

	public function revert_schema()
	{
		return array(
			'add_columns' => array(
				$this->table_prefix . 'users' => array(
					'ium_request_type'=> array('VCHAR:10', ''),
				),
			),
		);
	}
}
Image
User avatar
SpIdErPiGgY
Registered User
Posts: 309
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: Gateway error

by andreask » Wed Jul 03, 2024 11:20 pm

It seems alright.
Have you tried purging the cache?
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
andreask
Registered User
Posts: 773
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: Gateway error

by SpIdErPiGgY » Thu Jul 04, 2024 12:14 am

andreask wrote:It seems alright.
Have you tried purging the cache?
Yes, forum cache, browser cache...
Image
User avatar
SpIdErPiGgY
Registered User
Posts: 309
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: Gateway error

by andreask » Thu Jul 04, 2024 4:13 pm

Some questions.

Is this a fresh install or upgrade to the latest version?
Have you tried downloading the ext again?
Please describe the moves to install/upgrade the extension in detail.

Also please give me some time because I have no dev environment at the moment.
Im making one within the next few days.
Here is what I am working on right now...
Inactive User Manager for phpBB
Give it a try...
If you would like to buy me a bier ;) for my work I will drink it on a hot summer day and thank you!!!
andreask
Registered User
Posts: 773
Joined: Fri Feb 27, 2009 6:13 pm
Name: Andreas

Re: Gateway error

by SpIdErPiGgY » Fri Jul 05, 2024 5:15 pm

It's a fresh install
Yes, I deleted the files and them downloaded again.

I just upload them to the ext folder
Click on Install, and it does not go any further.
The install page keeps loading for 10 to 20 seconds, and then it stops, still showing the install page.

A few modules are installed, but the ext is still disabled

Screenshot 2024-07-05 at 19-17-09 Beheerderslog.png
Image
User avatar
SpIdErPiGgY
Registered User
Posts: 309
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm