Yes the ACP works normally, except for the links of all the deactivated extensions which are displayed only with the language keys, which is normal.
This board is the new home for david63's extensions.
All of the extensions hosted here will need to be treated as a new install as there is no migration from the original ones to these, and furthermore, no support will be given to migrating to any of these extensions from previous versions.
Due to the selfishness of certain board members it has become necessary to apply a limit of how many downloads each member can make before making a donation. Once a donation has been made then you will have unlimited downloads.
All of the extensions hosted here will need to be treated as a new install as there is no migration from the original ones to these, and furthermore, no support will be given to migrating to any of these extensions from previous versions.
Due to the selfishness of certain board members it has become necessary to apply a limit of how many downloads each member can make before making a donation. Once a donation has been made then you will have unlimited downloads.
[3.3.0] Forum Subs
-
- Donor
- Posts: 75
- Joined: January 2023
- devspace
- Owner
- Posts: 280
- Joined: October 2022
Re: [3.3.0] Forum Subs
That is not normal at all - do you have a screenshot?
The only place where I would expect to see language keys is in the ACP log.
How about your firewall - is that configured to allow outgoing requests?
-
- Donor
- Posts: 75
- Joined: January 2023
Re: [3.3.0] Forum Subs
No, I didn't take a screenshot...
Sorry I made a mistake, it's true that the modules are no longer displayed when the extensions are disabled without deleting the data.
Yes since the extension worked with phpBB 3.3.9...
It's since the update to phpBB 3.3.10 that my problem came back...
-
- Donor
- Posts: 75
- Joined: January 2023
-
- Donor
- Posts: 75
- Joined: January 2023
Re: [3.3.0] Forum Subs
I changed my php configuration and disabled the php firewall.
The pages are displayed but it is long and the version of the extension cannot be checked
You do not have the required permissions to view the files attached to this post.
-
- Donor
- Posts: 2
- Joined: May 2023
Re: [3.3.0] Forum Subs
Hello,
In the management of groups and users, the name "ACP_USER_UTILS" has not been replaced by its the corresponding translation
With my thanks for taking this replacement into account
Bernard
In the management of groups and users, the name "ACP_USER_UTILS" has not been replaced by its the corresponding translation
With my thanks for taking this replacement into account
Bernard
-
- Member
- Posts: 4
- Joined: November 2023
Re: [3.3.0] Forum Subs
Using PHP 8.2, Postgresql 15 and phpBB 3.3.11, I get the following warning:
https://php.watch/versions/8.1/PgSQL-resource
The offending line is:
I guess it has something todo with changing the postgresql results from resource to objects in PHP 8.1:[phpBB Debug] PHP Warning: in file [ROOT]/ext/devspace/forumsubs/controller/main_controller.php on line 92: Undefined property: PgSql/Result::$num_rows
https://php.watch/versions/8.1/PgSQL-resource
The offending line is:
Code: Select all
$num_rows = $result->num_rows;
- devspace
- Owner
- Posts: 280
- Joined: October 2022
Re: [3.3.0] Forum Subs
Can you trydoublejay wrote: ↑05 Nov 2023, 14:58Using PHP 8.2, Postgresql 15 and phpBB 3.3.11, I get the following warning:
I guess it has something todo with changing the postgresql results from resource to objects in PHP 8.1:[phpBB Debug] PHP Warning: in file [ROOT]/ext/devspace/forumsubs/controller/main_controller.php on line 92: Undefined property: PgSql/Result::$num_rows
https://php.watch/versions/8.1/PgSQL-resource
The offending line is:Code: Select all
$num_rows = $result->num_rows;
Find
// Get the member's subscriptions
Add before
$num_rows = 0;
-
- Member
- Posts: 4
- Joined: November 2023
Re: [3.3.0] Forum Subs
You mean replacing
with
This will resolve the warning, but I don't know if this is the best solution.
If you really meant adding the line while keeping the offending line as-is, no, the warning is the same (because the offending line did not change).
Code: Select all
$num_rows = $result->num_rows;
Code: Select all
$num_rows = 0;
If you really meant adding the line while keeping the offending line as-is, no, the warning is the same (because the offending line did not change).
-
- Member
- Posts: 4
- Joined: November 2023
Re: [3.3.0] Forum Subs
So the problem is the extensions code is not DB agnostic.
If you use mySQL everything is fine, because mysqli_query will return a mysqli_result class. This class has a "num_rows" property:
https://www.php.net/manual/en/class.mysqli-result.php
But, if you use PostgreSQL as backend, pg_query is used by phpBBs DB driver, which returns a PgSql\Result class. This class has no "num_rows" property (it has no properties at all):
https://www.php.net/manual/en/class.pgsql-result.php
Thus, trying to access "num_rows" on a Postgres result will issue a Warning.
Edit: For Postgres, you would have to use pg_num_rows($result) instead of $result->num_rows. But of course then it will fail for everything that is not postgres.I don't know what the "phpBB way" of solving this is, but the root cause seems to be clear.
If you use mySQL everything is fine, because mysqli_query will return a mysqli_result class. This class has a "num_rows" property:
https://www.php.net/manual/en/class.mysqli-result.php
But, if you use PostgreSQL as backend, pg_query is used by phpBBs DB driver, which returns a PgSql\Result class. This class has no "num_rows" property (it has no properties at all):
https://www.php.net/manual/en/class.pgsql-result.php
Thus, trying to access "num_rows" on a Postgres result will issue a Warning.
Edit: For Postgres, you would have to use pg_num_rows($result) instead of $result->num_rows. But of course then it will fail for everything that is not postgres.I don't know what the "phpBB way" of solving this is, but the root cause seems to be clear.
- devspace
- Owner
- Posts: 280
- Joined: October 2022
Re: [3.3.0] Forum Subs
Do you have this problem with PHP 8.1?
Whilst some/most of phpBB will work with PHP 8.2 the upper PHP version is still at 8.1
This may well be a bug in phpBB's dbal with PHP 8.2 and needs to be reported in phpBB's bug tracker.
Whilst some/most of phpBB will work with PHP 8.2 the upper PHP version is still at 8.1
This may well be a bug in phpBB's dbal with PHP 8.2 and needs to be reported in phpBB's bug tracker.
-
- Member
- Posts: 4
- Joined: November 2023
Re: [3.3.0] Forum Subs
No, it's because you are using code that only works with MySQL.
Please read my last post again. Accessing a "num_rows" property only works with MySQL. With PostgreSQL you get a completely different result class, one that has no such property.
Your code is not DB agnostic. It has nothing to do with PHP 8.2 or phpBB dbal.
Please read my last post again. Accessing a "num_rows" property only works with MySQL. With PostgreSQL you get a completely different result class, one that has no such property.
Your code is not DB agnostic. It has nothing to do with PHP 8.2 or phpBB dbal.