Hello all,

I am in need of an answer very quick on this issue, As my client is very mad now.

the client keeps getting this error "Parse error: parse error, unexpected $, expecting ')' in /home/necron99/public_html/forums/profilcp/def/def_usermaps.php on line 344"

the line of code that this is refering to is this
'PCP.profil.profile_prefer' => array(
'custom' => 1,
'title' => 'profilcp_prefer_shortcut',
),
'PCP.profil.profile_prefer.base' => array(),

Someone Please help A.S.A.P

    What wilsonrock is trying to say is that although the error showed up in that line the actual cause may be a couple of lines just before it like leaving a semicolon ':' off or something along those lines. and please when posting code use the PHP code icon to enclose the code it is the icon after the # <> icons. Paste your text then select it iwth your mouse then click the PHP icon and it will make your code more readable.

      Specifically, there are a few things that that one line make me wonder about.

      First, you are assigning 'PCP.profil.profile_prefer' what is that? Under normal circumstances, you can't assign a string a value. That makes me wonder if there isn't an error before the line.

      Second, after 'profilcp_prefer_shortcut' there is a comma that looks very suspicious. I don't think it belongs.

      Finally, after 'PCP.profil.profile_prefer.base' => array() there is a comma that looks very suspicious.

      It seems like you're building a very large array. If this is the case, I'd suggest breaking it into smaller bits to ease debugging.

      // Like this
      $yourarray['PCP.profil.profile_prefer'] = array('custom' => 1,'title' => 'profilcp_prefer_shortcut');
      $yourarray['PCP.profil.profile_prefer.base'] = array();

        Ok the other problem I was just able to resolve, but I have another issue now.

        which is this, Parse error: parse error, unexpected '\"' in /home/nrevange/public_html/administrator/components/com_sef/sef.class.php on line 160

        ok so here is the code

        153)if ($key != "0") {
        154)$config_data .= "$$key = ";
        155)switch (gettype($value)) {
        156) case "boolean":
        157) $config_data .= ($value ? "true" : "false");
        158) break;
        159) case "string":
        160) $config_data .= """.addslashes($value).""";
        161) break;
        162) case "integer":
        163) case "double":
        164) $config_data .= strval($value);
        165) break;
        166) case "array";
        167) $datastring ='';
        168) foreach($value as $key2=>$data) {
        169) $datastring .= '"'.addslashes($data).'",';
        170) }
        

        Still needing fast help, LOL

          Too many double quotes:

          160) $config_data .= '"'.addslashes($value).'"';

            Got Another error Fatal error: Cannot instantiate non-existent class: net_url in /home/nrevange/public_html/components/com_sef/sef.php on line 46

            This code is from line 38 to line 50.

            //initialize
            $this->_error = null;
            $this->oldurl = trim($this->oldurl);
            $this->newurl = trim($this->newurl);
            
            // check for valid URLs
            if (($this->oldurl == '')||($this->newurl == '')){
            $this->_error .= _COM_SEF_EMPTYURL;
            return false;
            }
            if (eregi("^/", $this->oldurl)) {
            $this->_error .= _COM_SEF_NOLEADSLASH;
            }
              Write a Reply...