phpBB Gallery

Error when changing author - phpBB Gallery

Error when changing author

by panhead » Sun Mar 17, 2019 10:16 am

If I change the author of a picture I get this error:

Fatal error: Uncaught TypeError: Argument 4 passed to phpbbgallery\core\user::__construct() must be an instance of phpbb\profilefields\manager, instance of phpbb\config\db given, called in /home/sites/site42525/web/phpBB3/ext/phpbbgallery/core/controller/image.php on line 975 and defined in /home/sites/site42525/web/phpBB3/ext/phpbbgallery/core/user.php:64 Stack trace: #0 /home/sites/site42525/web/phpBB3/ext/phpbbgallery/core/controller/image.php(975): phpbbgallery\core\user->__construct(Object(phpbb\db\driver\factory), Object(phpbb\event\dispatcher), Object(phpbb\user), Object(phpbb\config\db), Object(phpbb\auth\auth), 'phpbb_gallery_u...', './', 'php') #1 /home/sites/site42525/web/phpBB3/vendor/symfony/http-kernel/HttpKernel.php(135): phpbbgallery\core\controller\image->edit('7949') #2 /home/sites/site42525/web/phpBB3/vendor/symfony/http-kernel/HttpKernel.php(57): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(phpbb\symfony_request), 1) #3 /home/sites/site42525/web/phpBB3/app.php(35): Symfony\Component\HttpKe in /home/sites/site42525/web/phpBB3/ext/phpbbgallery/core/user.php on line 64

Despite the error the author is changed.
panhead
Registered User
Posts: 685
Joined: Sat Dec 20, 2003 8:17 pm
Contact:

Re: Error when changing author

by stefan-franz » Fri Mar 22, 2019 1:19 pm

That does not work for me either
stefan-franz
Registered User
Posts: 76
Joined: Mon Mar 11, 2019 7:29 pm
Contact:

Re: Error when changing author

by panhead » Mon Apr 15, 2019 10:28 am

Any idea how to solve this?
panhead
Registered User
Posts: 685
Joined: Sat Dec 20, 2003 8:17 pm
Contact:

Re: Error when changing author

by Leinad4Mind » Thu Apr 25, 2019 7:29 am

Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
User avatar
Leinad4Mind
Translator
Posts: 852
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: Error when changing author

by panhead » Thu Apr 25, 2019 8:15 am

Thank you, that works.
But I see this message on top of the screen:

[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbgallery/core/controller/image.php on line 1264: array_keys() expects parameter 1 to be array, null given
panhead
Registered User
Posts: 685
Joined: Sat Dec 20, 2003 8:17 pm
Contact:

Re: Error when changing author

by Leinad4Mind » Thu Apr 25, 2019 9:08 am

Can't replicate it, but try to add after: $this->php_ext = $php_ext;

This line:

Code: Select all

$this->users_data_array = array();
That is just a silly warning and maybe it appears because you've debug enabled prolly.
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
User avatar
Leinad4Mind
Translator
Posts: 852
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: Error when changing author

by panhead » Thu Apr 25, 2019 9:18 am

I then get:

General Error
SQL ERROR [ mysqli ]

[0]

SQL

No values specified for SQL IN comparison

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 997
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 547
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 441
CALL: phpbb\db\driver\driver->sql_in_set()

FILE: [ROOT]/phpbb/auth/auth.php
LINE: 609
CALL: phpbb\db\driver\factory->sql_in_set()

FILE: [ROOT]/phpbb/auth/auth.php
LINE: 388
CALL: phpbb\auth\auth->acl_raw_data()

FILE: [ROOT]/ext/phpbbgallery/core/controller/image.php
LINE: 1265
CALL: phpbb\auth\auth->acl_get_list()

FILE: [ROOT]/ext/phpbbgallery/core/controller/image.php
LINE: 448
CALL: phpbbgallery\core\controller\image->load_users_data()

FILE: [ROOT]/vendor/symfony/http-kernel/HttpKernel.php
LINE: 135
CALL: phpbbgallery\core\controller\image->base()

FILE: [ROOT]/vendor/symfony/http-kernel/HttpKernel.php
LINE: 57
CALL: Symfony\Component\HttpKernel\HttpKernel->handleRaw()

FILE: [ROOT]/app.php
LINE: 35
CALL: Symfony\Component\HttpKernel\HttpKernel->handle()
panhead
Registered User
Posts: 685
Joined: Sat Dec 20, 2003 8:17 pm
Contact:

Re: Error when changing author

by Leinad4Mind » Thu Apr 25, 2019 9:40 am

Ok, I'll check that later when I've more time. Basically you just need to add that line on the right place. Before it is used on the 1st place.
Want to access all my portuguese MOD and Extension translations?
Become my Patreon!
phpBB Portugal Translator and Moderator
User avatar
Leinad4Mind
Translator
Posts: 852
Joined: Sun Jun 01, 2008 11:08 pm
Contact:

Re: Error when changing author

by panhead » Thu Apr 25, 2019 9:50 am

Great, thank you.
panhead
Registered User
Posts: 685
Joined: Sat Dec 20, 2003 8:17 pm
Contact: