Something has gone wrong after I replaced about.php with addon.json in my theme.
Something has gone wrong.
We've run into a problem and are unable to handle this request right now.
Please check back in a little while.
=======================================
The site was working with about.php no problems ,
It's broken after I replaced about.php with addon.json.
I have try clear .ini files from cache and it does'nt help.
How can i fix that and make addon.json works?
=======================================
<?php if (!defined('APPLICATION')) exit();
$ThemeInfo['Fresh'] = array(
'Name' => 'example',
'Description' => 'example is a example theme.',
'Version' => '1.0',
'Author' => "hello",
'AuthorEmail' => 'example@gmail.com',
'License'=>"GNU GPL3",
'AuthorUrl' => 'https://open.vanillaforums.com',
'RequiredApplications' => array('Vanilla' => '2.6.x'),'Options' => array(
'Styles' => array(
'Red' => '%s',
'Red' => '%s_Red',
'Orange' => '%s_Orange',
'Yellow' => '%s_Yellow',
'Green' => '%s_Green',
'Cyan' => '%s_Cyan',
'Blue' => '%s_Blue',
'Purple' => '%s_Purple',
'Ocean' => '%s_Ocean',
)
)
);
=======================================
{
"key": "example",
"name": "example",
"description": "example is a example theme.",
"version": "1.0.0",
"type": "theme",
"license": "GNU GPL3",
"author": [
{
"name": "hello
"email": "example@gmail.com
}
],
"layout": {
"categories": "Modern",
"discussions": "Modern"
},
"options": {
"styles": {
"Default": "%s",
"Red": "%s_Red",
"Orange": "%s_Orange"
"Yellow": "%s_Yellow"
"Green": "%s_Green"
"Cyan": "%s_Cyan"
"Blue": "%s_Blue"
"Purple": "%s_Purple"
"Ocean": "%s_Ocean"
},
"text": {
"Custom Text": {
"Description": "Custom text to be inserted in the theme.",
"Type": "textbox"
}
}
}
}
Comments
You are missing a comma there.
https://jsonlint.com/
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
@Bleistivi
thank you ! i have fixed it !