We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

[fix for] Uncaught TypeError and [] operator not supported for strings | Forum

dave Leader
dave Jul 18 '20

Ran into both of these errors in one of my plugins and so i wanted to share the fix with everyone.


PHP Fatal error:  Uncaught TypeError: Argument 1 passed to OW_ErrorManager::exceptionHandler() must be an instance of Exception, instance of Error given  


Line 235 in ow_core/error_manager.php


Since php 7.1


The fix is just remove the word Exception 


original code       (Exception $e)

new code        ($e)



For the error :  [] operator no supported for strings


It means that since php 7.1 we can no longer just use

$myarray[] = whatever we load it with


it has to be initialized because since php 7.1 php will no longer automatically assign $var[] as an array, you must tell php that it is an array first.


$myarray = array();  or   $myarray = [];


Then you can use it as $myarray[] = whatever we load it with


hope that helps...  



S. Bourdon
S. Bourdon Feb 13 '21
Thanks Dave!
I've been debugging for days since I've updated to php 7...

Little info like this helps a lot.

Cheers!
Christina F. Custer
Christina F. Custer Oct 26 '22
Thanks for this. I will not solve the errors I am facing in one of my website
The Forum post is edited by Christina F. Custer Oct 26 '22
Ahmad
Ahmad Mar 8 '23
Many thanks, Admin, for providing us with such valuable information. The problems that I am having with one of my websites showforapk will not be fixed by me. Please check everything out and resolve the problem.
tatitac
tatitac Jul 16 '23
For many people this is the best solution here see how to do it. 파티벳 토토
tatitac
tatitac Jul 24 '23
Useful info. Lucky me I discovered your web site unintentionally, and I’m shocked why this accident didn’t came about in advance! I bookmarked it. 토토커뮤니티
tatitac
tatitac Aug 2 '23
오피가이드's diverse listings exceed expectations. A goldmine of service options.
pooledorothyw
pooledorothyw Aug 3 '23
Hey there,

Great question I was about to say the same I also have facing the same problem with my website from last couple of days. How can I fix it. Review my website https://fishingproductspoint.com/best-fish-finder-for-the-money/

tatitac
tatitac Aug 6 '23
Their 구글 seo techniques are effective and transparent. We are delighted with the results.
tatitac
tatitac Aug 10 '23
very good post, i definitely really like this excellent website, continue it 강남사설카지노
tatitac
tatitac Aug 12 '23
I can't get enough of 업소사이트! It's my secret weapon for discovering excellent businesses.
tatitac
tatitac Aug 13 '23
Experience high-quality streaming on 누누티비 (Noonoo TV) without any hidden charges.
nerufbqu
nerufbqu Aug 13 '23


Good luck Schneider, all the best for you and your team

 تأسيس شركة في دبي
tatitac
tatitac Aug 14 '23
Trust and reliability define 텐텐벳 - fast withdrawals and a vast selection of sports to choose from.
tatitac
tatitac Aug 15 '23
Thrilled to be on a verified 먹튀검증 사이트, no more doubts or fears.
tatitac
tatitac Aug 15 '23
The security measures on 안전카지노 are top-notch. It ensures a safe and enjoyable gaming experience.
tatitac
tatitac Aug 15 '23
Experience luxury and convenience with 출장마사지. Their expert therapists provide a mobile oasis of tranquility.
tatitac
tatitac Aug 16 '23
Thank you, 즐달, for providing a dependable platform to discover sensual massage options in Busan.
tatitac
tatitac Aug 17 '23
I trust 에볼루션카지노추천 for a fair and thrilling casino adventure. Their games are fantastic.
tatitac
tatitac Aug 19 '23
Discover ultimate comfort and self-discovery through 천안오피's sensual massage.
Pages: 1 2 3 »