WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Text Widget
[resolved] Does not works... my mystake maybe (7 posts)

  1. aresca
    Member
    Posted 2 years ago #

    Hi, i've installed the plugin. All ok. I've activated and placed the widget in the sidebar.
    Then i've placed inside the code:

    <?php include("http://www.handballestense.com/wp-content/classifica.html"); ?>

    the result is the following error message appearing in the block where i assumed the html page should has to appear:

    Warning: include() [function.include]: URL file-access is disabled in the server configuration in /web/htdocs/www.handballestense.com/home/wp-content/plugins/advanced-text-widget/advancedtext.php(159) : eval()'d code on line 1
    
    Warning: include(http://www.handballestense.com/wp-content/classifica.html) [function.include]: failed to open stream: no suitable wrapper could be found in /web/htdocs/www.handballestense.com/home/wp-content/plugins/advanced-text-widget/advancedtext.php(159) : eval()'d code on line 1
    
    Warning: include() [function.include]: Failed opening 'http://www.handballestense.com/wp-content/classifica.html' for inclusion (include_path='.:/php5/lib/php/') in /web/htdocs/www.handballestense.com/home/wp-content/plugins/advanced-text-widget/advancedtext.php(159) : eval()'d code on line 1

    may you kindly help me please?

    http://wordpress.org/extend/plugins/advanced-text-widget/

  2. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    The issue is in your PHP code. Your PHP configuration doesn't support inclusion of the URLs. You have to use full or relative path to include your file. If your HTML file is located in the same folder where WordPress is installed, then your code should look like this:

    <?php
      include("/web/htdocs/www.handballestense.com/home/wp-content/classifica.html");
    ?>
  3. aresca
    Member
    Posted 2 years ago #

    That's perfect. Thank you very much.

  4. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    You're welcome! :)

  5. aresca
    Member
    Posted 2 years ago #

    Dear Maxchirkov, may i disturb you for a question about a WP plugin i'm looking for?
    The classifica.html file is a simply html file that has to be weekly modified.
    The guy that is going to modify it does not know anything about html. So the question is:

    there is somewhere a plugin to be used in administration panel that gives the possibility to load an html file and modify it in a visual way... without coding i mean.

    thank you again

  6. Max Chirkov
    Member
    Plugin Author

    Posted 2 years ago #

    I don't have the answer to your question. You'd have to search through directory of the plugins if such plugin is available. On the other hand, why don't you simply copy the context of your HTML file into a blank WordPress page - it has a Visual editor and well as HTML editor built-in. Then you'll be able to edit the content in the Visual editor as often as you need.

  7. aresca
    Member
    Posted 2 years ago #

    Yes. That was i figured out... and after all, he shall has to copy the resulting code in susbstitution of the previous...
    Yes it could works i believe

    thanks for all

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic