Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

rss feed not working please help tried everything i think i see why but what file to edit?

Please look here: view-source:http://www.lowpricehosts.com/ there is a space i see this but what file do i edit ?? been trying to find the file for 2 hours i really would love some advice.

«13

Comments

  • Options
    x00x00 MVP
    edited November 2014

    I believe you already brought this up, it will be in the theme or plugins. I also gave you a script you can use to search for white space.

    grep is your friend.

  • Options

    i can not find my old post, i have looked in bittersweet theme and nothing found i have been looking now for nearly 4 hours :(

  • Options
    R_JR_J Ex-Fanboy Munich Admin
  • Options

    https://www.dokuwiki.org/tips:findbadphp.php is not working , do you have any idea where the file is?

  • Options

    try disabling plugins and themes.

    grep is your friend.

  • Options

    ah ty i tried disabling everything already :( not seeing a option to disbale the theme, changed theme to other themes same issue

  • Options

    same on every theme https://lowpricehosts.com/discussions/feed.rss

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://sitename.com/discussions/feed.rss
    Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>
    ^

  • Options

    this link does not work for me:
    https://www.dokuwiki.org/tips:findbadphp.php
    ^

    I see on the homepage of my site there is a space at the top and this is why i have no rss i need to know what file it is where is located? Does anyone know?

  • Options

    Have you made any core modifications?

    grep is your friend.

  • Options

    None, i updated to the newset version with softaculous today, this maybe why>?

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Here is a copy:

        <?php
        /**
         * This script will search all PHP files in the same directory
         * and below and will check for trailing or leading whitespaces
         * and UTF-8 BOMs
         */
    
        header("Content-Type: text/plain");
    
        echo "starting...\n";
        flush();
        traverse(dirname(__FILE__));
        echo "finished...\n";
    
        function traverse($dir){
            if ($dh = opendir($dir)) {
                while (($file = readdir($dh)) !== false) {
                    //skip hidden files and upper dirs
                    if(preg_match('/^[\._]/',$file)) continue;
                    if(is_dir($dir.'/'.$file)){
                        traverse($dir.'/'.$file);
                        continue;
                    }
                    flush();
    
                    if(!preg_match('/\.php$/',$file)) continue;
                    $check = @file_get_contents("$dir/$file",0,null,0,3);
                    if(!$check){
                        echo "$dir/$file is not readable.\n";
                        continue;
                    }
    
                    if($check == "\xef\xbb\xbf"){
                        echo "$dir/$file has UTF-8 BOM at start.\n";
                        continue;
                    }
    
                    if($check != '<?p'){
                        echo "$dir/$file doesn't start with <?php\n";
                        continue;
                    }
    
                    $check = file_get_contents("$dir/$file",0,null,
                                        filesize("$dir/$file")-5,5);
                    $pos = strpos($check, '?>');
                    if($pos !== false && !(substr($check,-2) == '?>' || substr($check,-3) == "?>\n") ){
                        echo "$dir/$file has trailing chars after closing ?>\n";
                        continue;
                    }
               }
               closedir($dh);
           }
        }
    
  • Options

    i have edited but still some errors shoing not sure what starts with means? http://lowpricehosts.com/searchfiles.php

  • Options

    well IT WORKS NOW :D

  • Options

    THANKS GUYS!!! :)

  • Options
    peregrineperegrine MVP
    edited November 2014

    .

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    UKguyUKguy
    edited November 2014

    hmm: Your feed might be empty or missing publish dates or GUIDs. A feed needs to contain publish dates or GUIDs in order to work with twitterfeed.

    https://lowpricehosts.com/discussions/feed.rss

    any ideas why it is not excepting my feed guys? :)

  • Options

    guid and pubDate is there.

    grep is your friend.

  • Options

    1 error prohibited this feed from being saved

    There were problems with the following fields:

    Feedurl A feed needs to contain publish dates or GUIDs in order to work with twitterfeed, see http://help.twitterfeed.com/knowledgebase/articles/88117-twitterfeed-says-we-couldn-t-find-valid-date-time
    
  • Options
    peregrineperegrine MVP
    edited November 2014
    • but you have guid and pubDate as x00 said:

    this is the message in twitterfeed link

    The dates need to be in a specific, valid format in order to be read correctly. If your feed does contain date/time stamps but you still get the above message, try entering your feed URL at feedvalidator.org - this is a useful online tool which can show common problems with feeds, including invalid date formats.

    is it the https:: (wild guess)

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.