Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for some help.

Status
Not open for further replies.

Cirga

MIS
Sep 6, 2006
2
US
I am far from even knowing much about PHP to be honest.. and with that being said I am putting myself at the mercy of everyone here. I am actually hoping someone might be able to direct me towards a fix.

I am using the Mambo CMS... and trying to get a module to work fully. Its all open source.. and I just dont understand what this error message stands for. If anyone can offer any help it would be greatly appreciated.

The Error message:

Notice: Use of undefined constant _SEARCH_TITLE - assumed '_SEARCH_TITLE' in /var/ on line 636


------

Thank you in Advance!
 
it is usually when a user has frgotten to enclose an associative array key in quotes.

e.g
$array[key]
vs
$array['key']

php does not throw an error in these cases. it first assumes that key in the first example is a defined constant. if it cannot find a constant of this name it assumes that key is a string.

if this is part of the mambo codebase, search the mambo forums for a patch.
 
Thank you for replying jpadie. I took a look at the actual PHP file. and this is what I found.

function buildViewSelect($viewtype, $args) {
$viewlist[] = mosHTML::makeOption( 'view_day', _CAL_LANG_VIEWBYDAY );
$viewlist[] = mosHTML::makeOption( 'view_week', _CAL_LANG_VIEWBYWEEK );
$viewlist[] = mosHTML::makeOption( 'view_month', _CAL_LANG_VIEWBYMONTH );
$viewlist[] = mosHTML::makeOption( 'view_year', _CAL_LANG_VIEWBYYEAR );
$viewlist[] = mosHTML::makeOption( 'view_cat', _CAL_LANG_VIEWBYCAT );
$viewlist[] = mosHTML::makeOption( 'view_search', _SEARCH_TITLE );
$tosend = mosHTML::selectList( $viewlist, 'task', $args, 'value', 'text', $viewtype );
echo $tosend;
}


The line that has _SEARCH_TITLE is line 636.

There is no other instance of Search title in the document. Any idea if this is done incorrectly?
 
it is asking for a constant but at the time that this script executes it appears that _SEARCH_TITLE has not been declared, hence the error message.

i would check any "included" file to see whether an include is failing.

as said, i would recommend referring this issue to the mambo support forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top