Author Topic: Includes not showing up in menus  (Read 10260 times)

0 Members and 1 Guest are viewing this topic.

Offline LadyCrimson

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Photography blog
Includes not showing up in menus
« on: March 04, 2007, 11:59:08 AM »
During a switch of PHP versions, I ran into the usual problems. Most things are now fixed/working on the 1.7.3 versions, except that the include files that I use to insert menu links do not show up anymore.

First:
They worked before on the older/different server-php versions.
Includes I use on other site pages still work fine so I assume it's something related to 4images and the PHP version.
The long-arrays setting is 'on'.
I don't get any error messages whatsoever.
I tried changing the global.php file as described in the "PHP Compatible" thread in the Bugs/Fixes forum. Did nothing.

I use the very simple include code like this within the template html pages:
Code: [Select]
<?php include 'http://crimsonkeep.com/includes/amenu.inc'?>
Anyone have any clue what's wrong/what else to consider for a possible solution?

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Includes not showing up in menus
« Reply #1 on: March 04, 2007, 12:53:45 PM »
Hi,

Quote
Not Found
The requested URL /includes/amenu.inc was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


cu
KUrt

Offline LadyCrimson

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Photography blog
Re: Includes not showing up in menus
« Reply #2 on: March 04, 2007, 01:20:13 PM »
Yes, I know that file doesn't exist...that was an example to show the type of code I used, not a list of a real include menu file ... ie, that's not what's wrong. But thanks for replying.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Includes not showing up in menus
« Reply #3 on: March 04, 2007, 01:25:39 PM »
Hi,

and wy do you not include a php file?

What is the code from the amenu.inc :?: :?:

Kurt

Offline LadyCrimson

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Photography blog
Re: Includes not showing up in menus
« Reply #4 on: March 04, 2007, 01:29:58 PM »
I didn't think it would be neccesary. I just use simple html code in the include file, no fancy commands:

Code: [Select]
<hr><b>Other links:</b><br><br>
<a href="http://forums.obsidianent.com/index.php" title="Obsidian Forums">The Obsidian Forums</a> <br>
<a href="http://www.frappr.com/obsidianentertainment">Obsidian Frappr</a><br>
<hr>
<a href="http://crimsonkeep.com/" title="Main Site">Site Home</a><br>
<a href="http://crimsonkeep.com/kotor2/index.php" title="Kotor2 Gallery">KOTOR2 Gallery</a>
<br><br>
<br><hr>

This worked fine before the PHP-server changes. It does not work with the gallery, now.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Includes not showing up in menus
« Reply #5 on: March 04, 2007, 01:31:43 PM »
rename the file to .php
And include .php  :wink:


Kurt

Offline LadyCrimson

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Photography blog
Re: Includes not showing up in menus
« Reply #6 on: March 04, 2007, 01:33:51 PM »
I'm not sure I understand - instead of "'menu.inc" the file should be named "menu.php" ?

I don't see how that would work.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Includes not showing up in menus
« Reply #7 on: March 04, 2007, 01:35:10 PM »
menu.php   works fine 8O

Offline LadyCrimson

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Photography blog
Re: Includes not showing up in menus
« Reply #8 on: March 04, 2007, 01:40:40 PM »
I renamed the file to .php. It does not work.

http://oealbums.crimsonkeep.com/index.php

There should be a short menu list where the white circle is. There is not.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Includes not showing up in menus
« Reply #9 on: March 04, 2007, 01:46:03 PM »
test this code:

Code: [Select]
<?php
include('includes/ob-gallerymenu.php');
?>

Kurt

Offline LadyCrimson

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Photography blog
Re: Includes not showing up in menus
« Reply #10 on: March 04, 2007, 01:50:16 PM »
Nope, didn't work. I tried both .php and going back to .inc ... still doesn't show up either way. :/

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Includes not showing up in menus
« Reply #11 on: March 04, 2007, 01:52:37 PM »
I use in all my free templates a menue.php, that i included in the html files....

Kurt

Offline LadyCrimson

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Photography blog
Re: Includes not showing up in menus
« Reply #12 on: March 04, 2007, 01:59:23 PM »
Unfortunately I'm a php idiot. All I know is what I've been doing worked before, still works with the other programs I have installed/use on my server, but not in 4images.
I can talk to my webhost tech again but I don't think he'd have any answers either.

I appreciate your efforts. :) I think I'll go to bed now however, cause I'm sleepy.  :wink:

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Includes not showing up in menus
« Reply #13 on: March 04, 2007, 02:03:14 PM »
ok.

One info again:

I rename my menue.php to menue.inc and it is working also  :wink:

cu
Kurt