Author Topic: Totally Error  (Read 7753 times)

0 Members and 1 Guest are viewing this topic.

Offline VnxDragon

  • Newbie
  • *
  • Posts: 27
    • View Profile
Totally Error
« on: July 24, 2002, 10:47:54 PM »
Hi, when I type in the url to my site, I get this error message, it was right after I finished editing some of my template files.
Parse error: parse error, unexpected '<' in /home/ani-blad/public_html/includes/template.php(130) : eval()'d code on line 33
I found a topic titled parse error, but it was in german.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Totally Error
« Reply #1 on: July 24, 2002, 11:27:45 PM »
Check the php code right after the random image who shows the date. Best is to remove it.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline VnxDragon

  • Newbie
  • *
  • Posts: 27
    • View Profile
Totally Error
« Reply #2 on: July 25, 2002, 02:19:16 AM »
I don't understand, I did remove the date thing when i customized my templates, could it be possibly that it didn't work because I only typed in {random_image} instead of the other braces as well? I just uploaded the original home template and it works even with the date php code, but when I upload my home templates, without the php code it doesn't work

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Totally Error
« Reply #3 on: July 25, 2002, 09:07:10 AM »
Please send me your template at jan@dotsunited.de. I will take a look...

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Totally Error
« Reply #4 on: July 25, 2002, 10:32:57 AM »
Ok, i see. You have php code in your template.

Important:
- PHP start and end tags in his own lines.
- Use double quotes instead of single quotes

<?php <- own line
include("ashnews.php");
?> <- own line

I hope there are no single quotes in the include file  :?

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline VnxDragon

  • Newbie
  • *
  • Posts: 27
    • View Profile
Totally Error
« Reply #5 on: July 25, 2002, 08:21:52 PM »
LOL... Gosh I can't believe that I would miss such a simple thing, wow... Well Thanks for helping me out when my brain was turned off Jan. C ya round