• Hi all,

    After login the site to admin, I found following warning above the Dashboard;

    Notice: Only variables should be assigned by reference in /home4/nowgolic/phgallery5A.reynoldstocks.com/wp-content/plugins/cimy-header-image-rotator/cimy_header_image_rotator.php on line 221

    On the .php file
    line 221

    
    function cimy_hir_my_admin_init() {
    	$role = & get_role('administrator');   # line 221
    	$role->add_cap('manage_cimy_image_rotator');
    

    Please advise how to fix this warning? Thanks

    Regards

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • It seems you are asking for help regarding an error from an actual WordPress Plugin

    This forum here is not intended for plugin-support, rather for things related to Fixing WordPress itself.

    We would appreciate if you can ask your question (it seems a bug to me, if you didn’t alter the Plugin files) to the plugin that causes this error.

    You can find their Support Area here

    Note, I see the last thread there is over 5 years old, so I am not sure you will receive any help from the makers or maintainers of that plugin, but it is the right place to ask, since the error message you show points towards that plugin.

    Additionally the error is very old and was either never fixed, or you run an old version of that plugin, see this thread

    Wish you good luck with this and hopefully the plugin authors will reply to the Support request in the appropriate forum!

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    You should also look into disabling “display_errors” on your site in general. Live sites should never have the display_errors setting enabled, even though that is usually the default on most hosting services. Ask your host how to turn that off.

    Thread Starter satimis02

    (@satimis02)

    Hi Beda,

    Thanks for your advice.

    “Cimy Header Image Rotator” has been abandoned sometimes. Some of my websites are still running this plugin, not all of them having problem but only this site. Unfortunately I couldn’t find an alternative.

    “Image Caption Hover Gallery” is only 22% similar

    Top 10 Cimy Header Image Rotator Alternatives
    wordpress.alternativelist.com/plugin/cimy-header-image-rotator-alternative-and-similar-wordpress-plugins-21296

    Regards

    Thread Starter satimis02

    (@satimis02)

    Hi Samuel,

    Thanks for your advice.

    on wp-setting.php

    I couldn’t find
    define('DISABLE_ERROR_HANDLER', true);

    Regards

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    That’s not a WordPress setting, it’s a PHP setting. Which is why you need to ask your host about it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to fix “Only variables should be assigned by reference in…”’ is closed to new replies.