Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
parse error unexpected T_ENCAPSED_AND_WHITESPACE .. .
  • Posted: 12.09.2006, 04:48
     
    marire
    rank:
    Freshman Freshman
    registered:
     September 2006
    Status:
    offline
    last visit:
    12.09.06
    Posts:
    3
    hi

    on my instalation after filling the form of administrator and password, i'll get following error:

    Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING includes/pnSession.php on line 123

    and on the line 123 of pnSession.php i can only find:

    Code

    121 function pnSessionGetVar($name)
    122 {
    123 if(isset($name) && isset($_SESSION['PNSV' . $name])) {
    124 return $_SESSION['PNSV' . $name];
    125 }
    126 return false;
    127 }

    somebody knows what i'm doing wronggg!

    thanks

    mario
  • Posted: 12.09.2006, 12:26
     
    gerkynet
    rank:
    Helper Helper
    registered:
     February 2006
    Status:
    offline
    last visit:
    21.11.06
    Posts:
    257
    What versions of PHP & mySql do you have?
    It can by for magic quotes, or because you don't accept cookies, ¿?

    --
  • Posted: 12.09.2006, 15:55
     
    marire
    rank:
    Freshman Freshman
    registered:
     September 2006
    Status:
    offline
    last visit:
    12.09.06
    Posts:
    3
    hola
    creo que podemos hablar en español, tengo instalado MySQL 4.0.24_debian-10-log y los del hosting sólo me ponen PHP 4 y me sale el mensaje de los magic_quotes, he creado un archivo .htaccess con la frasesita de php_flag magic_quotes_gpc On y ya no me deja acceder a la web '500 Internal Server Error'

    gracias y salu2
    mario


  • Posted: 12.09.2006, 22:02
     
    marire
    rank:
    Freshman Freshman
    registered:
     September 2006
    Status:
    offline
    last visit:
    12.09.06
    Posts:
    3
    Hi again,

    from the hosting-support i'll get this answer:

    "If you need to use PHP magic quotes, you will need to enable them
    within(inside) your PHP scripts and not from .htaccess "

    so my question is, do I have to enable in all scripts the magic_cuotes?? Where can a place the text to enable them!

    The server is using PHP ver 4.3.9 and MySQL 4.0.24_debian-10-log


    thanks and regards
    mario
  • Posted: 13.09.2006, 04:57
     
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    online
    Posts:
    13418
    Reupload PostNuke, sounds like some of the files are corrupt. Also check the mode your FTP client is uploading the files in.

    PostNuke doesn't require magic quotes, but for security reasons in third party code it is a good idea.

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula