• Resolved wiredpinecone

    (@wiredpinecone)


    Hiya,

    I’ve been using this plugin successfully for a few years now on a Genesis build with Pods, Jetpack, Pagebuilder (siteorigin), W3 total cache and TinyMCE, among others, but after a spate of recent updates, it suddenly stopped appearing though the widget css is fine. The widget is embedded in a Pagebuilder block, but also does not work in a sidebar or footer as a standalone.

    I know my source code is still fine as I’ve tested it elsewhere and it works. Admin permissions are in order. The console doesn’t give me any info about it. Thus I want to check about any known conflicts of late and of course will post back if I find any.

    for what it’s worth, here’s the code:
    <br></br>
    <br></br>
    <br></br>
    <!– Word Counter –>
    <?php
    $url = “https://twb.translationcenter.org/workspace/stats.rss&#8221;;
    $rss = @simplexml_load_file($url, ‘SimpleXMLElement’, LIBXML_NOCDATA);
    if ($rss){
    foreach ($rss->channel->item as $feedItem) {
    $count = number_format((double)$feedItem->description);
    echo “<div class=’box’ style=’position:relative’>”;
    echo “<p style=’position:relative; font-weight:bold;color:#FFF;font-size:56px;’ align=’center’>$count</p>”;
    echo “<p> </p>”;
    echo “<br><p style=’position:relative; font-weight:bold;font-size:40px;color:#334666;’ align=’center’>Translated words donated so far!</p>”;
    echo “</div>”;
    break; // Bomb-out after first item has been read
    }
    } else {
    // Do nothing – it is best not to announce an error
    }
    ?>
    <br></br>

    Thank you!

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Nothing has changed with the widget. No incompatibilities. It’s the simplest widget possible to do this sort of thing. Basically it’s a Text widget that runs your PHP code. That’s it.

    Thread Starter wiredpinecone

    (@wiredpinecone)

    Via debugging using Query Monitor, I found that the webhost had blocked a call, generating the following error:

    simplexml_load_file(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0

    which then generated this one:
    simplexml_load_file(https://(myurlhere)/stats.rss): failed to open stream: no suitable wrapper could be found

    This is while the php widget is nested the pagebuilder plugin by siteorigin.
    So far I’ve seen recommendations to use CURL instead if the webhost won’t unblock.

    • This reply was modified 7 years, 2 months ago by wiredpinecone.
    Thread Starter wiredpinecone

    (@wiredpinecone)

    Actually I was able to fix it by editing php.ini

    allow_url_fopen = On

    Somehow it had been set it to off at some earlier point, which caused the error.

    We’d recently changed webhosts – this error occurred on Bluehost.

    • This reply was modified 7 years, 2 months ago by wiredpinecone.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘stopped working – known conflicts?’ is closed to new replies.