• Resolved tomsorenson

    (@tomsorenson)


    My site (basecamplegends.com) mysteriously quit working a couple months ago and I’ve been feverishly trying to restore it. Finally, today, I got it up and running again. I was in the middle of writing a post about how happy I was to have it running again and I went to check another page on the blog – and it went back down. Now, depending on the browser I use, I get different error messages. In Explorer, it tells me this:

    Parse error: syntax error, unexpected T_STRING in /home/content/b/a/s/basecamplegend/html/wp-content/themes/BCL_3.0/functions.php on line 1

    In Chrome and in Firefox it tells me this:

    This webpage has a redirect loop
    The webpage at https://basecamplegends.net/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

    Note that in Chrome, the site is wanting to forward to basecamplegends.net for some reason. I checked my Domain manager, and that isn’t the case. basecamplegends.net forwards to basecamplegends.com – not vice-a-versa. I have searched the forums for an answer and have found many, but haven’t found one to work in my situation. I tried changing the .htaccess file to RedirectEngine Off and that didn’t work. I have contacted my hosting company and they told me basecamplegends.com is not functioning correctly at this time due to a syntax error in my code.

    I’ve said all that to say this:
    I’ve not changed anything in the files since I had the site running briefly, and I never changed any files to make the site break in the first place 3 months ago. Any ideas as to what is going on? Here is my funtion.php file if anyone can see something amiss in it:

    [Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Please post your functions.php on pastebin.

    I would start by turning off ALL plugins and perhaps run this scan: https://sitecheck.sucuri.net/scanner/

    Your server may have been compromised.

    Thread Starter tomsorenson

    (@tomsorenson)

    Thank you. I’m sorry about the long code. Should have read the forum rules first – imagine that! ??

    I deleted my plugins folder before I posted the first time as that was my first guess, too. It is odd that I keep getting different messages. Last night my message went from redirect and/or syntax error to:

    Chrome:

    No data received
    Unable to load the webpage because the server sent no data.
    Here are some suggestions:
    Reload this web page later.

    Explorer:

    Internet Explorer cannot display the webpage

    The link you gave me couldn’t run the test as it says it is unable to connect to site.

    Odd that without changing files, all these different messages have started to appear.

    Thread Starter tomsorenson

    (@tomsorenson)

    Update – not sure if I need to start a new thread or continue with this one.

    I found that my domain a record was not pointing to the hosting IP server – I switched that so it was, and that got rid of the redirect error. I was still getting this error:

    Parse error: syntax error, unexpected T_STRING in /home/content/b/a/s/basecamplegend/html/wp-content/themes/BCL_3.0/functions.php on line 1

    So I deleted that folder entirely (after backing it up) to make WordPress run on default theme. Now I can login to my admin, but still cannot view my website. There is no longer any error – just an empty page. Something is wrong in the contents folder I’m assuming – any ideas?

    Thread Starter tomsorenson

    (@tomsorenson)

    Another update:

    Found this link that solved the blank page problem. It was as simple as activating a new theme. Now the only problem is that the theme I want to use still doesn’t work – but I know now that it is a code issue.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Blank pages are usually PHP errors.

    Check your error log.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect or Syntax error’ is closed to new replies.