WordPress.org

Ready to get started?Download WordPress

Forums

Twitter posts to Blog
[resolved] Constant Error on Page - Undefined index (14 posts)

  1. Squelds
    Member
    Posted 1 year ago #

    Hi,

    Would love to get this plugin working but as soon as i activate it it makes my whole webpage error before showing its content. I have put in all the details correctly (i presume) and followed the install guide, but as soon as it activates i get the following msgs on screen, some of which go down about 2 pages deep and even show if i am in the wordpress config pages not just the main websites content:

    Notice: Undefined index: std in /home/selteckc/public_html/elitehealthandperformance.co.uk/wp-content/themes/pont/admin/main.php on line 58

    The above msg is shown at least 40 times.

    Notice: Undefined variable: icon in /home/selteckc/public_html/elitehealthandperformance.co.uk/wp-content/themes/pont/admin/main.php on line 32

    This msg shown only once.

    Notice: Undefined variable: alt in /home/selteckc/public_html/elitehealthandperformance.co.uk/wp-content/themes/pont/page.php on line 10

    This msg is shown roughly 6 times where my slider should be, which has now gone.

    If i disable the plugin the msgs go away, but hell it scared me at first as i thought i had broken it for good !!

    Any help much appreciated.

    Squelds :-)

    http://wordpress.org/extend/plugins/twitter-posts-to-blog/

  2. Squelds
    Member
    Posted 1 year ago #

    Update:

    Just having another scan through the website and it seems that there are errors all over the place as soon as this plugin is activated. Not just the ones listed above, but several others like my gallery is now showing:

    Notice: Undefined index: classes in /home/selteckc/public_html/elitehealthandperformance.co.uk/wp-content/themes/pont/extends/shortcodes.php on line 323

    Notice: Undefined index: hover in /home/selteckc/public_html/elitehealthandperformance.co.uk/wp-content/themes/pont/extends/shortcodes.php on line 322

    Will leave the website with errors/plugin activated until author has a chance to see it.

  3. debirobarts
    Member
    Posted 1 year ago #

    I am having this same issue and would love to see the resolution! I am dying to get this plugin working, as I've had so many issues with Twitter since the API BS!

    Thanks!

  4. badbreze
    Member
    Plugin Author

    Posted 1 year ago #

    Dont know why you have these problem, can i have the theme you use?

  5. Squelds
    Member
    Posted 1 year ago #

    I am using the Pont theme from themeforest.

  6. osckar
    Member
    Posted 1 year ago #

    Hi:

    Same issue here..

    Notice: Undefined index: auto_deactive in /home/noticias/public_html/wp-content/plugins/dp-maintenance-mode-lite/functions.php on line 97
    
    Notice: Undefined index: auto_deactive in /home/noticias/public_html/wp-content/plugins/dp-maintenance-mode-lite/functions.php on line 99
    
    Notice: Undefined variable: data in /home/noticias/public_html/wp-content/themes/algarida/inc/themes-style.php on line 317

    and many others.

    Thanks!

  7. badbreze
    Member
    Plugin Author

    Posted 11 months ago #

    I dont have any problem with this theme, you're self hosted?

  8. acostanza
    Member
    Posted 10 months ago #

    This plugin is so close to great potential for me! I am having very similar errors:

    Notice: Undefined index: excerpt_before in /hermes/waloraweb030/b2796/moo.forestbiotechorg/treetaggrorg/wp-content/plugins/header-footer/plugin.php on line 215

    Notice: Undefined index: excerpt_after in /hermes/waloraweb030/b2796/moo.forestbiotechorg/treetaggrorg/wp-content/plugins/header-footer/plugin.php on line 216

    Using Responsive Theme at the TreeTaggr.org website.

    Thanks for any assistance in getting rid of the errors!

  9. d0nk3y
    Member
    Posted 10 months ago #

    The error is due to:

    error_reporting(E_ALL) at the top of functions.php (I don't have the code in front of me, but pretty sure it's this page).

    Remove it or add // in front of it and all the errors on all the themes will stop.

  10. acostanza
    Member
    Posted 10 months ago #

    d0nk3y,
    Doesn't that turn off all error reporting? That doesn't seem like a good solution to me. I like knowing when a plugin is causing errors.

  11. badbreze
    Member
    Plugin Author

    Posted 10 months ago #

    If you remove this line errors may not be reported, errors exists anyway so this is not a good solution i think.

  12. d0nk3y
    Member
    Posted 10 months ago #

    What gives you the right to override my preferences and show errors on a site? Not only does it show errors from your script but any other errors from themes and other plugins while it's running.

    Error reporting is dangerous as it shows file paths and possible scripts installed that people can abuse, that is the reason PHP ships with error displays turned off.

    If you want to handle errors the _correct_ way, build an error handler and give me the option to display it, log it or email it, don't just assume it's safe to flood a production website with error reports.

    As you can see from all the errors (actually notices) above, not only does it give me detailed information of their filepaths but also what plugins and themes they are running, I can now go and look for coding errors in those plugins/themes to see if there is a security vulnerability that will allow me backend access.

    Let's not forget that EVERY error shown above has absolutely nothing to do with this plugin, yet due to this plugin, those errors are now being shown.

    Hey, what do I know, I've only been programming almost 20 years.

  13. badbreze
    Member
    Plugin Author

    Posted 10 months ago #

    Thank you for helping users telling them how to hide the error log, but do not judge my work, if you want to judge, create your own plugin to import content from twitter and satisfied all the demands of the users, then we'll talk!

    Now i've removed the error reporting from the plugin.

  14. acostanza
    Member
    Posted 10 months ago #

    badbreze,
    Thank you for the quick response! Your plugin is chugging along without errors reported now.

    d0nk3y,
    While spirited, I also appreciate your insight into error reporting and how it can be abused by the nefarious.

    Thank you both!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.