Jump to content
TNG Community
jayat1familytree

customconfig error

Recommended Posts

jayat1familytree

I updated my customconfig with some new links to the drop menus.

But there must be an error somewhere because when I upload it to replace the file, I get the dreaded blank white page.

 

Can someone take a look at this file and see what I am missing?

Thanks,

 

Jay

 

customconfig.zip

Share this post


Link to post
Share on other sites
Merv

Hi Jay,

It would be helpful to know which new links you have added to the menus.

Otherwise, it is a matter of reverting to the old code and then adding the new links one at a time to find out which one is the culprit.

 

Share this post


Link to post
Share on other sites
jayat1familytree

Merv,

Good point.

I changed/added

In the Find drop menu;

$link_nr++; // increment the number for each additional link (1)
$findmenulinks[$link_nr]['target'] = "1ft_searchtngvariables.php";
$findmenulinks[$link_nr]['icon'] = "img/search_icon.png";
$findmenulinks[$link_nr]['label_index'] = "1ftsearchtngvariables";
$findmenulinks[$link_nr]['admin'] = true;

$link_nr++; // increment the number for each additional link (1)
$findmenulinks[$link_nr]['target'] = "_proxy_exec.php?job=search_area.php";
$findmenulinks[$link_nr]['icon'] = "img/search_icon.png";
$findmenulinks[$link_nr]['label_index'] = "t99_fam_area_title";

in the More drop menu


$link_nr++; // increment the number for each additional link (1)
$custommenulinks[$link_nr]['target'] = "1ft_citiesandtowns.php";
$custommenulinks[$link_nr]['icon'] = "img/menu_place26x26.png";
$custommenulinks[$link_nr]['label_index'] = "1ft_cities_and_towns";

 

In the Info drop menu

// Links for the INFO drop menu
$link_nr=0; // increment the number for each additional link (1)
$infomenulinks[$link_nr]['target'] = "extensions/fgw/fgw.php";
$infomenulinks[$link_nr]['icon'] = "img/help_icon.png";
$infomenulinks[$link_nr]['label_index'] = "1ft_submitinfo_data";

 

 

 

 

 

 

Share this post


Link to post
Share on other sites
Ken Roy

Jay,

There is a Blank Pages article in the TNG Wiki Troubleshooting category that identifies common causes of the White Screen of Death.  Normally the cause is a syntax error.  You can use the PHP Syntax Checker to check a complete copy of your customconfig.php

  • Open your customconfig.php file in Notepad++ or other ASCII editor (none of the Microsoft editors work)
  • Select All
  • Copy
  • Paste the copied text in the PHP Syntax Checker
  • Select the PHP version
  • run the Check

Share this post


Link to post
Share on other sites
theKiwi

The problem is in line 75 of your file. You have

$link_nr=++; // increment the number for each additional link (1)

when it should be

$link_nr++; // increment the number for each additional link (1)

without the = sign

Roger

Share this post


Link to post
Share on other sites
jayat1familytree

Roger and Ken,

Thanks,   Yes, that was the error... 

The php syntax check web site actually listed the error for that line as "unexpected   ';' "  which threw me off at first.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×