Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Something has gone wrong after I replaced about.php with addon.json in my theme.

jeongweejeongwee ✭✭
edited June 2018 in Vanilla 2.0 - 2.8

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

Sign In or Register to comment.