Author Topic: Help with error Index.php  (Read 9281 times)

0 Members and 1 Guest are viewing this topic.

Offline newdls

  • Newbie
  • *
  • Posts: 33
    • View Profile
Help with error Index.php
« on: September 12, 2007, 07:12:55 PM »
when my page loads i get this error, I have reinstalled this 4images but i keep getting this error only in IE it wasn't there before please help i wished to resolve this error ASAP!  :?

Line:54
Char:3
Error:Syntax Error
Code:0
Url: http://www.perfectaddiction.org/4images/index.php

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Help with error Index.php
« Reply #1 on: September 12, 2007, 08:04:24 PM »
i hate word ASAP without to get money for that ;)

look with ORIGINAL templates if you get hits error.
if not, than you have error in YOUR templates
cheers
Nicky
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 ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline newdls

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Help with error Index.php
« Reply #2 on: September 12, 2007, 09:47:13 PM »
Sorry Nicky i just had this error for a month or so and i have searched this forum for answers and i have looked at the templates and searched for errors but i cant seemed to find anything.. if unless your talking bout the Home.html? 

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Help with error Index.php
« Reply #3 on: September 12, 2007, 09:59:28 PM »
This is JS error. Install any JS in header.html or PHP file ?
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline newdls

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Help with error Index.php
« Reply #4 on: September 12, 2007, 10:53:28 PM »
hello thunderstrike i did put in a js and it didnt work, so i took it out now i didnt put in in php file i have no clue what js to use in php file.
Thanks for replying

manurom

  • Guest
Re: Help with error Index.php
« Reply #5 on: September 12, 2007, 10:54:55 PM »
Hello;
it seems that part of your templates/your_template/header.html file makes that borrowing MS IE alert, especially the red line:
Quote
function popup(mylink, windowname) {
    if (! window.focus)return true;
      var href;
    if (typeof(mylink) == 'string')
      href=mylink;
    else
      href=mylink.href;
    window.open(href, windowname, 'width=170,height=240,scrollbars=no');
    return false;
  }
  else if (document.all && !document.getElementById){
    document.onmousedown = right;
  }
Don't know why this function is here, but if you don't really need it, just delete it, or ask someone a correct or cross-browser function.
I didn't try any variation of that java snippet cause I don't really know what is it for.
« Last Edit: September 12, 2007, 11:04:57 PM by manurom »

manurom

  • Guest
Re: Help with error Index.php
« Reply #6 on: September 12, 2007, 11:10:51 PM »
Hello again;
I changed:
Code: [Select]
else if (document.all && !document.getElementById){
to

Code: [Select]
else (document.all && !document.getElementById){
and had no more IE alert... but what about the function called by this script? Difficult to know without having the whole template.

Offline newdls

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Help with error Index.php
« Reply #7 on: September 12, 2007, 11:35:29 PM »
thanks manurom i took that one part of the code out and still had the error and i am now just seeing ur other post i will put that back in and i used a js and it worked also .. so now im error free thanks you guys for your help i greatly appreciate it.. You dont know how much this has been bugging me! :)

manurom

  • Guest
Re: Help with error Index.php
« Reply #8 on: September 12, 2007, 11:45:34 PM »
Great!
I hate to use IE, but when I refreshed my page on your website, I did not see anymore the problem. Good job, man!
Feel free to ask any help if you encounter any other poblem.

Regards.

Offline newdls

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Help with error Index.php
« Reply #9 on: September 12, 2007, 11:55:28 PM »
thanks very much and i will i am always surfing this forum for answers when i encounter a problem

manurom

  • Guest
Re: Help with error Index.php
« Reply #10 on: September 13, 2007, 12:37:33 AM »
Good!
Would be nice to mark your topic as "Solved", then.

Read you soon, I hope.

Regards.

Offline newdls

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Help with error Index.php
« Reply #11 on: September 14, 2007, 08:30:34 AM »
hey manurom how do i put solved on this topic?? thanks!