Fatal error: Uncaught TypeError

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

Since the forum updated from phpBB 3.2.1 to 3.2.2 I get this error when I try to enable an extension..
It happens to all extensions, disabled Vigilink, national flags.., and when I try to enable, this happens..

Code: Select all

Fatal error: Uncaught TypeError: Argument 1 passed to phpbb\db\migrator::get_callable_from_step() must be of the type array, null given, called in /home/algeme1q/public_html/phpbb/db/migrator.php on line 704 and defined in /home/algeme1q/public_html/phpbb/db/migrator.php:726 Stack trace: #0 /home/algeme1q/public_html/phpbb/db/migrator.php(704): phpbb\db\migrator->get_callable_from_step(NULL, NULL, false) #1 /home/algeme1q/public_html/phpbb/db/migrator.php(661): phpbb\db\migrator->run_step(NULL, NULL, false) #2 /home/algeme1q/public_html/phpbb/db/migrator.php(436): phpbb\db\migrator->process_data_step(Array, Array) #3 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') #4 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') #5 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') #6 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->tr in /home/algeme1q/public_html/phpbb/db/migrator.php on line 726
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

Anyone please? :oops:
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3738
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: Fatal error: Uncaught TypeError

Post by Kailey »

Have you replaced the file mentioned with a fresh one and cleared the cache?
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
My little corner of the world, where I sometimes post things documented from my job.
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

kinerity wrote: Wed Jan 24, 2018 1:38 am Have you replaced the file mentioned with a fresh one and cleared the cache?
Yes. Replaced the whole phpbb folder & cleared cache. Error stays
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

Bump ...
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Fatal error: Uncaught TypeError

Post by GanstaZ »

And you can't enable Viglink as well?
Last edited by GanstaZ on Mon Feb 19, 2018 12:08 pm, edited 1 time in total.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

GanstaZ wrote: Mon Feb 19, 2018 2:23 am And you can't enable Vigilink as well?
Nope, same error.
I uploaded all new phpBB files. Error stays.
I can install/enable some extensions, but not all.

These are not working:
  • JV Points System
    Ultimate Points Extension
    VigLink
    phpBB Arcade
    phpBB Arcade - JVA Start System
    phpBB Arcade - Board3 portal arcade modules

Tried to disable ALL extensions, and enable them one by one .. same error.
But I CAN enable them via the database phpbb_ext
Problem is that I need to update some extensions first.. so that wont work via the database ..
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Fatal error: Uncaught TypeError

Post by GanstaZ »

Did you update your board with full phpbb pack (if needed: with those fixes that you can see in this support forum above) ? Only time i could reproduce it, i had a module conflict in db and in migration file. It happened thanks to my own typo in migration file.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

GanstaZ wrote: Mon Feb 19, 2018 12:34 pm Did you update your board with full phpbb pack (if needed: with those fixes that you can see in this support forum above) ? Only time i could reproduce it, i had a module conflict in db and in migration file. It happened thanks to my own typo in migration file.
Yes, updated with the pull package. Already did the fixes from viewtopic.php?f=556&t=2453611 . But those have nothing to do with the error I have. Damn this is frustrating :?
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

Code: Select all

Fatal error: Uncaught TypeError: Argument 1 passed to phpbb\db\migrator::get_callable_from_step() must be of the type array, null given, called in /home/algeme1q/public_html/phpbb/db/migrator.php on line 704 and defined in /home/algeme1q/public_html/phpbb/db/migrator.php:726

Stack trace:
 #0 /home/algeme1q/public_html/phpbb/db/migrator.php(704): phpbb\db\migrator->get_callable_from_step(NULL, NULL, false)
 #1 /home/algeme1q/public_html/phpbb/db/migrator.php(661): phpbb\db\migrator->run_step(NULL, NULL, false) 
 #2 /home/algeme1q/public_html/phpbb/db/migrator.php(436): phpbb\db\migrator->process_data_step(Array, Array) 
 #3 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') 
 #4 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') 
 #5 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') 
 #6 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->tr in /home/algeme1q/public_html/phpbb/db/migrator.php on line 726
Fatal error: Uncaught TypeError
Must be something in the file? But problem is only on 1 site .. lol
Very frustrating, because I cannot update arcade extension, and install ultimate points ..
Or any other extensions that gave this error.
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Fatal error: Uncaught TypeError

Post by GanstaZ »

Well.. I don't know much about those extensions you use, but it smells like db problem (module table for example).
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

I emptied the phpbb_modules table
Then when I install an extension I get this:
The module already exists: UCP_AUTH_LINK_MANAGE
When I remove that module, en try to install an extension I get this:
The module already exists: ACP_CONTACT_SETTINGS
I can't find that module ..

And when I try again, this comes back until I empty the phpbb_modules table ..

Code: Select all

Fatal error: Uncaught TypeError: Argument 1 passed to phpbb\db\migrator::get_callable_from_step() must be of the type array, null given, called in /home/algeme1q/public_html/phpbb/db/migrator.php on line 704 and defined in /home/algeme1q/public_html/phpbb/db/migrator.php:726 Stack trace: #0 /home/algeme1q/public_html/phpbb/db/migrator.php(704): phpbb\db\migrator->get_callable_from_step(NULL, NULL, false) #1 /home/algeme1q/public_html/phpbb/db/migrator.php(661): phpbb\db\migrator->run_step(NULL, NULL, false) #2 /home/algeme1q/public_html/phpbb/db/migrator.php(436): phpbb\db\migrator->process_data_step(Array, Array) #3 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') #4 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') #5 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->try_apply('\\phpbb\\db\\migra...') #6 /home/algeme1q/public_html/phpbb/db/migrator.php(351): phpbb\db\migrator->tr in /home/algeme1q/public_html/phpbb/db/migrator.php on line 726
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Fatal error: Uncaught TypeError

Post by GanstaZ »

I would re-build modules table (fresh as a mint) & it may help delete the /cache/production. That error may smell like extension one, but i could be wrong. That's why we test to find out the culprit)
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

GanstaZ wrote: Tue Feb 20, 2018 2:12 pm I would re-build modules table (fresh as a mint) & it may help delete the /cache/production. That error may smell like extension one, but i could be wrong. That's why we test to find out the culprit)
And how can I rebuild that ?

========= EDIT ==========

I deleted some modules, and re-created them.
Also deleted some modules that where not removed by old extensions..
That seems to have fix the problem for now.. lets hope the error wont come back ...
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: Fatal error: Uncaught TypeError

Post by </Solidjeuh> »

Now this ..... damnnnnnnn

Code: Select all

Algemene fout
SQL ERROR [ mysqli ]

Duplicate key name 'itm_usr_mthd' [1061]

SQL

ALTER TABLE phpbb_user_notifications ADD INDEX itm_usr_mthd (item_type, item_id, user_id, method)

BACKTRACE

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

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

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

FILE: [ROOT]/phpbb/db/tools/tools.php
LINE: 1064
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/phpbb/db/tools/tools.php
LINE: 1551
CALL: phpbb\db\tools\tools->_sql_run_sql()

FILE: [ROOT]/phpbb/db/tools/tools.php
LINE: 671
CALL: phpbb\db\tools\tools->sql_create_index()

FILE: (not given by php)
LINE: (not given by php)
CALL: phpbb\db\tools\tools->perform_schema_changes()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 714
CALL: call_user_func_array()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 661
CALL: phpbb\db\migrator->run_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 400
CALL: phpbb\db\migrator->process_data_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 351
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 351
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 351
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 351
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 351
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 351
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 351
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 351
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 288
CALL: phpbb\db\migrator->try_apply()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 241
CALL: phpbb\db\migrator->update_do()

FILE: [ROOT]/phpbb/extension/base.php
LINE: 78
CALL: phpbb\db\migrator->update()

FILE: [ROOT]/phpbb/extension/manager.php
LINE: 190
CALL: phpbb\extension\base->enable_step()

FILE: [ROOT]/includes/acp/acp_extensions.php
LINE: 209
CALL: phpbb\extension\manager->enable_step()

FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: acp_extensions->main()

FILE: [ROOT]/adm/index.php
LINE: 82
CALL: p_master->load_active()
Post Reply

Return to “[3.2.x] Support Forum”