• Resolved blackfred

    (@blackfred)


    Hola

    I’m trying to install wordpress on my new domain because I had too much trouble with my last one. Now I’m getting wierd errors I’ve never even seen before.

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/blacklqu/public_html/wordpress/wp-content/themes/default/functions.php on line 129

    This pops up on all the sites I try to access. Note that I haven’t installed wordpress yet. If I try to manually replace the functions file, it says there’s something wrong with ANOTHER file. So I replaced every file it said was broken. In the end, I DID get through to the install. I even successfully installed it. However, it said that there was a ‘SQL error’ when I did. I ignored it and tried to access the login page. Yet another syntax error. So once again I replaced files until I got in. It worked, but the themes are only PARTLY working. So I replaced the themes files and tried again. Now nothing works correctly.

    This is strange. It seems like it RESETS when I replace enough files. Replacing the whole wordpress folder doesn’t work. I still get errors. Deleting the folder and reimporting proved to be unsuccessful.

    Anyone know how to solve this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter blackfred

    (@blackfred)

    UPDATE:

    Seems like it has something to do with that SQL error. My bro just tried to install wordpress on his site which is on the same server. He didn’t get a single error.

    I’ve tried to rename the DBname, add new users, change passwords. Everything. No luck so far.

    that error makes no sense.

    update_option('kubrick_header_color', $fontcolor);

    and you didnt paste an SQL error. where’s that?

    Thread Starter blackfred

    (@blackfred)

    UPDATE:

    Now this is getting wierder by the minute. I had my bro use my information and upload wordpress via his computer. Now it runs smoothly, no errors at all.

    Could it be something wrong with my ftp program? Or my computer?

    more than likely its the way you are ftp’ing the files. wordpress files are text files. text files need to be uploaded in ascii mode. if not, you can end up with garbled files.

    Thread Starter blackfred

    (@blackfred)

    That might be right. Do you know how I change that? I’m currently using FileZilla and SmartFTP.

    Edit: I’ve tried to upload using binary and ASCII mode. Nothing new happens. Still the same errors.

    Thread Starter blackfred

    (@blackfred)

    UPDATE!

    I’m getting a slightly different error now when I try to access the admin panel than the one I got earlier

    Warning: Cannot modify header information - headers already sent by (output started at /home/blacklqu/public_html/wordpress/wp-content/themes/tutorial/functions.php:2) in /home/blacklqu/public_html/wordpress/wp-includes/pluggable.php on line 770

    Modify? O_o

    The error suggests that you have modified

    /home/blacklqu/public_html/wordpress/wp-content/themes/tutorial/functions.php

    And now there is a space or similar on line 2 that is outside php tags.

    Thread Starter blackfred

    (@blackfred)

    Actually I haven’t modified it. And I bet that if I do re-upload the file, I will get another error. Just like with the installation.

    It’s true I had my bro upload wordpress for me on his computer, but then I tried to upload my own theme. Clearly there’s something wrong with my computer. I also have problems with sending pictures over the web. They tend to get messed up. Big time.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Syntax error / SQL error’ is closed to new replies.