• Hello,
    Hope someone can help me.
    I have just installed it in my localhost.Everything works fine except a page
    (Appearance > Themes > Feature Filter)
    When I clicked on the feature filters,the error messages are displayed.

    Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 269

    Warning: Illegal offset type in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 272

    Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 269

    Warning: Illegal offset type in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 272

    Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 269

    Warning: Illegal offset type in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 272

    Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 269

    Warning: Illegal offset type in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 272

    The following link is the captured screen.
    https://postimg.org/image/bzr4zyqe5/

    How do I solve this problem? I am new to wordpress.

    Thanks!
    Regards,
    Joseph

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator t-p

    (@t-p)

    try:
    – clearing cache
    – deactivating ALL plugins temporarily to see if this resolves the problem. If this works, re-activate them individually (one-by-one) to find the problematic plugin(s). If you can’t get into your admin dashboard, try deactivating via FTP or SFTP or whatever file management application your host provides.
    – switching to the unedited default, core-bundled Theme (such as Twenty Fourteen) for a moment using the WP dashboard to rule out any theme-specific issue. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed or some plugins stick around in cached files. So by renaming the folder, you break them and force them inactive).
    – If the above troubleshooting steps fail to resolve the issue, try MANUALLY re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. Read the Manual Update directions first!
    BTW, if you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. It’s a great safety net.

    Thread Starter wfjmo

    (@wfjmo)

    Thanks for your reply.
    I have not used any plugin yet since it was fresh installed.
    All of them I have tried it but still no luck.

    Moderator t-p

    (@t-p)

    – Check the error logs on your server and see if they reveal a more specific error message. If you need help locating them, ask your hosting provider to help you with that.

    Thread Starter wfjmo

    (@wfjmo)

    Similar errors are displayed in php_error_log.
    PHP Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 269

    PHP Warning: Illegal offset type in C:\xampp\htdocs\WordpressDemo\wordpress2\wp-admin\includes\theme.php on line 272
    I am sorry that I don’t have a hosting provider.

    Thread Starter wfjmo

    (@wfjmo)

    After a lot of investigation,I have fixed it.
    But I don’t know why no one have this problem so far.=)
    I share the solution.
    For those of you encounter this problem,you can try to modify the theme.php.
    in wp-admin\includes\theme.php
    function get_theme_feature_list

    The oringinal one is
    foreach ( $feature_items as $feature ) {
    			if ( isset($features[$feature_category][$feature]) )
    				$wporg_features[$feature_category][$feature] = $features[$feature_category][$feature];
    			else
    				$wporg_features[$feature_category][$feature] = $feature;
    }

    Just change it to

    foreach ( $feature_items as $feature ) {
    			if (is_array($feature))
    			{
    				foreach ( $feature as $subfeature )
    				{
    					$wporg_features[$feature_category][$subfeature] = $features[$feature_category][$subfeature];
    				}
    			}
    
    		}

    Congratulations. The same problem appeared for me today, and on the same lines. Thanks to your help I could solve. I already know of at least one other person who encountered the same problem today. I’m going to bring the solution to it.

    Moderator t-p

    (@t-p)

    @denilsonaraujo,
    @wfjmo,

    keep in mind when you next update the WP, the core file you modified will be overwritten, and you will lose your changes

    Hey thanks wfjmo!! this same problem just happened to me on a fresh wp install, and your fix work perfectly, thanks! ??

    Hello,

    Some file is missing or all file are not correctly uploaded. Upload all file again.

    i did the solution. it worked but i cant see the names of the individual filters. i.e. i can see only the tick boxes and not the corresponding name of the tick box. if i randomly click and any tick box and press apply filter the filter works but i am not sure what i have pressed ^^.

    And why did this error occurred in the first place since i haven’t changed anything nor it was a fresh install. maybe it was after the update and didn’t not notice, who knows.

    I have the exact same issue on xampp server.

    Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\wordpress39\wp-admin\includes\theme.php on line 269 Warning: Illegal offset type in C:\xampp\htdocs\wordpress39\wp-admin\includes\theme.php on line 272 Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\wordpress39\wp-admin\includes\theme.php on line 269 Warning: Illegal offset type in C:\xampp\htdocs\wordpress39\wp-admin\includes\theme.php on line 272 Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\wordpress39\wp-admin\includes\theme.php on line 269 Warning: Illegal offset type in C:\xampp\htdocs\wordpress39\wp-admin\includes\theme.php on line 272 Warning: Illegal offset type in isset or empty in C:\xampp\htdocs\wordpress39\wp-admin\includes\theme.php on line 269 Warning: Illegal offset type in C:\xampp\htdocs\wordpress39\wp-admin\includes\theme.php on line 272

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    This was an issue here on www.remarpro.com itself. The change that caused the problem has been undone, so everything should be back to normal. If you changed your core files to “fix” this mistake, then you can undo that change now.

    Sorry for the breakage. It was accidental.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘After installation of WP,error occurs in Appearance > Themes > Feature Filter’ is closed to new replies.