Uncaught TypeError: Unsupported operand types
@WikiAdmin Uhmm...So it's probably a stupid question. As I pointed out in my previous comment, I lost all the data from my wiki site, including the database. And I didn't have time to rebuild my site until the last few days. I seem to have had to do an upgrade, but I couldn't because of the lost database tables. Is there any way to allow me to do a re-install rather than a version upgrade?
Updated: I found an old copy of the database files on my local device and I uploaded it to my new database, so the wiki site has been online. However, when I try to save my article after edited, I will get an Error 500 page. How can I debug and fix it?
Thanks.
Comments
Log in or create an account to post a comment.
Re: Uncaught TypeError: Unsupported operand types
回复: Uncaught TypeError: Unsupported operand types
But after I followed the ∬3.1.1 and ∬3.1.3 parts of Debug Section, I still could not see the debug information on my wiki page
Re: Uncaught TypeError: Unsupported operand types
check error logs
Not all error messages will surface in your browser.
回复: Uncaught TypeError: Unsupported operand types
I copied the apache logs here. I don't know how to find deeper reasons based on these. Can you help?
error.log
回复: Does wackowiki allow users to use templates
Re: Uncaught TypeError: Unsupported operand types
It is very likely that you have just a older version of this file in your config folder. This is causing the Unsupported operand types error.
Please replace the old version of the file with the new one and this should solve the issue.
回复: Uncaught TypeError: Unsupported operand types
回复: Uncaught TypeError: Unsupported operand types
Re: Uncaught TypeError: Unsupported operand types
config/config_defaults.php
And purge the config cache via the admincache action or manually.
_cache/config/config.php
Re: Uncaught TypeError: Unsupported operand types
The following lines throwing the Fatal error because of the missing config value.
handler/page/edit.php #Line 148
This check is not critical, so you can comment out the entire if {} enclosure or you add the missing parameter to your config array.
The config array is created by reading first the config_defaults.php then the config table, and it merges both arrays so that every parameter present in the config table replaces the default values. This config array is then written in the _cache/config/ folder.
Now if a parameter is missing, then it is neighter in the config_default.php nor the config table, or the cached config still has the old values and must be updated.
config_defaults.php
You can add it by hand or copy the linked version into your config folder.