• sureslive

    (@sureslive)


    I get this parse error
    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ‘)’ in /home/sureskum/public_html/noart/wp-admin/index.php on line 42

    when I try accessing the https://sureskumar.com/noart/wp-admin/
    the site https://sureskumar.com/noart/ works fine, just that I am not able to login to dashboard. Once my username password is correct, it shows this error.

    I also tried downloading a fresh copy of wp 3.3.1 and uploaded via ftp. no luck.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Elan Technosys

    (@elantechnosys)

    Try upload wp-admin folder via ftp from fresh download.

    Thread Starter sureslive

    (@sureslive)

    Hi,
    I have tried that. no luck ??

    luxythemes

    (@luxythemes)

    Can you please post the line 42 of your /wp-admin/index.php?

    Thread Starter sureslive

    (@sureslive)

    $help .= '<p>' . __('Links in the Toolbar at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.') . '</p>';
    luxythemes

    (@luxythemes)

    Are you using a custom theme or a modified functions.php?

    Thread Starter sureslive

    (@sureslive)

    no I am not using any custom theme. Its a fresh wp install. no modified functions as well.

    1. I downloaded the wp 3.3.1 from www.ads-software.com
    2. uploaded it in sureskumar.com/noart/
    3. created the mysql db and entered those values in sureskumar.com/noart/
    4. Now the site sureskumar.com/noart/ works fine. But I am not able to login to wp-admin.

    I have created more than 2 wp sites earlier so I am sure I am not going wrong in the procedure. In the same domain sureskumar.com and sureskumar.com/nodotart/ are also wp sites which works fine.

    Is there a problem in having more than 2 sites wp sites under one domain ? any php memory issues ??

    esmi

    (@esmi)

    Is there a problem in having more than 2 sites wp sites under one domain ?

    No. I run about 4 sites under one of my domains

    any php memory issues ?

    Nope. Neither is there anything wrong with the line you posted above. The most likely cause is a corrupted copy of that file though.

    Thread Starter sureslive

    (@sureslive)

    I also suspected that. So I download another fresh version of 3.3.1 and uploaded. Still no luck. Now I am trying to upload older versions of wp. Just a try. Will let you guys know what happens. something weird right?

    esmi

    (@esmi)

    Very weird.

    Thread Starter sureslive

    (@sureslive)

    Even uploading the old versions of wp doesn’t work. Any idea what might be happening. I have no idea how to proceed further.

    Any help will be much appreciated.
    Thanks

    Thread Starter sureslive

    (@sureslive)

    And I also tried creating a diff database username and password specifically for this site. and still no luck ??

    luxythemes

    (@luxythemes)

    I would follow these steps;

    * Remove any other WordPress installations on that domain and make sure multiple installations are not causing any problems.

    * As far as I see, you have installed WordPress to a separate directory, which is actually fine. Just to make sure this is not the origin of the problem I would install WordPress to the main directory where your domain points. In your case https://sureskumar.com

    Thread Starter sureslive

    (@sureslive)

    No, the other two sites are live and cant be removed even for testing. I have to figure out a method to troubleshoot this without touching other sites. anyways as you mentioned, I have installed this in a new dir. so technically there shouldn’t be any issue.

    Is there any better way to debug php sites ?

    luxythemes

    (@luxythemes)

    * Check your server logs to see if there are any errors.
    * If you use cPanel you can find the logs under the logs section.
    * The last option is to contact the hosting company and see if they can help you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Parse Error in wordpress fresh install.’ is closed to new replies.