Jump to content
TNG Community

customconfig error


jayat1familytree

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

Link to comment
Share on other sites

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.

 

Link to comment
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";

 

 

 

 

 

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
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.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...