Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Apr 2019
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Website coding issue?

    Hi all,

    Firstly, my apologies if this is in the wrong forum, as I'm actually uncertain if the issue I am having with my website (Console Obsession) is related to PHP at all. I'm not actually a coder myself, so know very little about this stuff, so would appreciate any help.

    Anyway, to cut to the chase, my site has been behaving rather oddly over the past few days. Basically, when browsing it code comes up at times as opposed to the page I requested. There's no particular pages that I can pinpoint, as it just seems to happen randomly. I have just got the following code by clicking on one of the pages for example:

    <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"

    >
    <channel>
    <title>Comments on: News Ė Official Sonic online store launched</title>
    <atom:link href="http://www.consoleob.com/news/news-official-sonic-online-store-launched/feed/" rel="self" type="application/rss+xml" />
    <link>http://www.consoleob.com/news/news-official-sonic-online-store-launched/</link>
    <description>My Wordpress Blog</description>
    <lastBuildDate>Sun, 27 Aug 2017 18:42:00 +0000</lastBuildDate>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>

    </channel>
    </rss>

    I would greatly appreciate any help on this matter, as I really have no idea what could be causing it. Thank you.

  2. #2
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    11,304
    Thanks
    7
    Thanked 1,360 Times in 1,329 Posts
    That is not a page, it’s an XML file pertaining to an RSS feed. It’s supposed to be opened with an RSS reader. Do you remember which link you clicked when you got the above code?

  3. Users who have thanked VIPStephan for this post:

    consoleob (Apr 28th, 2019)

  4. #3
    New to the CF scene
    Join Date
    Apr 2019
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    That is not a page, it’s an XML file pertaining to an RSS feed. It’s supposed to be opened with an RSS reader. Do you remember which link you clicked when you got the above code?
    Hi,

    Thanks for your response.

    No, sorry I don't remember which page I clicked. But, like I said, it seems to be happening randomly on any page, and I really have no idea why. I have tried clicking through different pages of the site, and then all of a sudden the code comes up as opposed to the page. Any clue as to how I can stop this please?

    Many thanks,

  5. #4
    New to the CF scene
    Join Date
    Apr 2019
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Unhappy

    I just wanted to add that I have just went to the homepage of the my site, and this came up instead of the page

    -consoleob.jpg

    I really have no idea what's going on

  6. #5
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    11,304
    Thanks
    7
    Thanked 1,360 Times in 1,329 Posts
    Whoops, you should quickly disable directory listing. Allowing all files to be shown poses a security risk.

    It looks like there are some server issues; perhaps contacting your hosting company might help? I was able to look at your server error log file and there are a lot of entries like:

    [28-Mar-2017 11:41:09 UTC] PHP Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/console/public_html/wp-content/themes/console-obsession/functions.php on line 16
    (which is well within your jurisdiction to fix)

    But the last one is interesting:
    [29-Mar-2017 22:19:50 UTC] PHP Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/console/public_html/wp-includes/update.php on line 130

  7. Users who have thanked VIPStephan for this post:

    consoleob (Apr 28th, 2019)

  8. #6
    New to the CF scene
    Join Date
    Apr 2019
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    Whoops, you should quickly disable directory listing. Allowing all files to be shown poses a security risk.

    It looks like there are some server issues; perhaps contacting your hosting company might help? I was able to look at your server error log file and there are a lot of entries like:


    (which is well within your jurisdiction to fix)

    But the last one is interesting:
    Thanks again for your help .

    I did try to contact my server company yesterday, although the man I spoke to suggested that it was out of their area of expertise, so they sadly weren't able to help me. I have just been on my site again now, and the code didn't seem to be coming up as often, although it still did. Like you say, perhaps it is a server issue.

    As for those errors that you found, I wouldn't know where to start! Coding like that looks like a foreign language to me

    I better disable the directory listing in the way that you suggested, being that it is a security risk. I'll get on that ASAP! Thanks for the advice

  9. #7
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,877
    Thanks
    12
    Thanked 402 Times in 399 Posts
    I've seen web sites exhibit flaky and inconsistent behavior when there are coding problems. Your site shows a bunch of warnings and errors, which might be the source of this issue. Unfortunately it may be hard to chase them all down, but I'd start with the ones that mention unexpected or missing html tags first. All the warnings can probably be ignored at the moment.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •