#1 2016-04-07 18:08:12

ccmksy
Member
From: Hong Kong
Registered: 2013-11-30
Posts: 48

[SOLVED] Article Type Error in the article's option panel (v 1.0.8.1)

After I created new article type, there was an error in the article's option panel :

A PHP Error was encountered

Severity: Notice
Message:  Undefined variable: article_type_current
Filename: article/options.php
Line Number: 117

Now I solved it :

1. Open /themes/admin/views/article/options.php
2. Find line 117, like the following code :

<option <?php if ($article_type_current == $idx) :?>selected="selected"<?php endif; ?>  value="<?php echo $idx; ?>"><?php echo $type; ?></option>

3. Finally, change to like this :

<option <?php if ($id_type == $idx) :?>selected="selected"<?php endif; ?>  value="<?php echo $idx; ?>"><?php echo $type; ?></option>

Last edited by ccmksy (2016-04-23 14:06:48)

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations