Author Topic: Errors,need help!!  (Read 11500 times)

0 Members and 1 Guest are viewing this topic.

Offline aj21

  • Newbie
  • *
  • Posts: 20
    • View Profile
Errors,need help!!
« on: November 22, 2005, 01:07:09 AM »
Okay, i installed the gallery on Wednesday, and everything was fine, I took off the 'allow user registration' thing by editing out this line
<a href="{url_register}">{lang_register}</a>

in the template/user)logininfo thing, however, today i went to see the gallery, after i uploaded some pictures and it was fine, then i went back and now i'm getting this error > Parse error: parse error, unexpected '{' in /home/gl/public_html/shoshana/gallery/lang/english/main.php on line 80

so i tried deleting the line in the english/main place and nothing, so then i just put everything back to the way it was, and i'm still getting the same error.

if i want to reinstall the whole thing, but not delete the categories and images, is there a way to save the categories nad images?

please help me !!!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Errors,need help!!
« Reply #1 on: November 22, 2005, 01:22:47 AM »
If you dont worry about loosing any changes you made to the code, simply reupload all .php files and overwrite the old ones (make sure you upload them in text mode, not binary!)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline aj21

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Errors,need help!!
« Reply #2 on: November 29, 2005, 09:38:11 PM »
k question...
it did it again,
i reinstalled last time and i haven't touched or logged into the gallery in forever
i just clicked the link to it and i got this again

Parse error: parse error, unexpected '{' in /home/gl.../public_html/shoshana/gallery/lang/english/main.php on line 80

what do i do? i haven't touched any folders or files.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Errors,need help!!
« Reply #3 on: November 30, 2005, 12:25:05 AM »
what is on lines 78 - 82 in main.php? (note, I'm not asking about the copy of that file that is on your computer, but the actual file that is on the server right now)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline aj21

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Errors,need help!!
« Reply #4 on: November 30, 2005, 03:06:27 AM »
$lang['spamming'] = "You cannot repost so soon, please try again after a short while.";
$lang['download_error'] = "Download error!";
$lang['register_download'] = "Please register to download images.<br />&raquo; <a href="{url_register}">Register now</a><a href="http://www.iadpsg.org/forums/themes/default2/serial_homeworld.asp" class=giepoaytr title="serial homeworld" target=_blank>serial homeworld</a>";
$lang['voting_success'] = "Thank you for rating this image";
$lang['voting_error'] = "Rating invalid!";

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Errors,need help!!
« Reply #5 on: November 30, 2005, 03:59:11 AM »
if you want to use quotes ( " ) in lang files, you must escape them with a backslash ( \ ) like this: \"


* V@no is doubtfull about "it worked before and quit working by itself" as you were trying to suggest :P
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline aj21

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Errors,need help!!
« Reply #6 on: November 30, 2005, 05:03:17 AM »
u can check my file dates, i have not touched it.
i don't even know how to edit this stuff as we've learnt from other errors!!!

i have to change all the "'s to /"s???
i don't get this!!!!

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Errors,need help!!
« Reply #7 on: November 30, 2005, 10:24:24 AM »
like this: \"

i have to change all the "'s to /"s

there is nothing to say !
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Errors,need help!!
« Reply #8 on: December 01, 2005, 02:15:03 AM »
Ok, I'll chew for you:
Quote
$lang['register_download'] = "Please register to download images.<br />&raquo; <a href=\"{url_register}\">Register now</a><a href=\"http://www.iadpsg.org/forums/themes/default2/serial_homeworld.asp\" class=giepoaytr title=\"serial homeworld\" target=_blank>serial homeworld</a>";
See the difference now?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline aj21

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Errors,need help!!
« Reply #9 on: December 01, 2005, 03:32:57 AM »
you're my angel!!
thank you!!!!!!!!!!!!!!

Offline pkrpkr

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Errors,need help!!
« Reply #10 on: December 15, 2005, 06:42:09 PM »
if you want to use quotes ( " ) in lang files, you must escape them with a backslash ( \ ) like this: \"


* V@no is doubtfull about "it worked before and quit working by itself" as you were trying to suggest :P

I found the same missing \ in my main.php at line 80, and didn't change anything before. Before it worked fine, then all of a suddin I got a parsing error. What also was the case is that my site was hacked, with extra .php files uploaded, comment of my images modified, and links introduced in my main page to other sites (this time it was a sex site, it happened before). Changes only in files in \4img and subdirectories, not in other files of my server. File and directory permissions where set according to the installation docs and the security fix had been applied. When I deleted all files and uploaded from a backup, the \ before the " quotes where there again. I have the suspicion that the 'sudden' missing of the backslash (\) has something to do with the hacking.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Errors,need help!!
« Reply #11 on: December 16, 2005, 01:09:22 AM »
Hackers and viruses is very good possibility too. So, if something happens all of the sudden by itself, the best thing to do is contact the host administrator.

P.S.
@pkrpkr:
If this happend before, did u try to investigate how this happend? a hole on server software, or simply somebody guessed your user account and password?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline pkrpkr

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Errors,need help!!
« Reply #12 on: December 16, 2005, 11:31:04 AM »
P.S.
@pkrpkr:
If this happend before, did u try to investigate how this happend? a hole on server software, or simply somebody guessed your user account and password?

No, but now I'm installing tracking sofware and have removed (World) write permissions for a lot pf other 4img files (666->644). Wonder if I can track this down.