Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Error including libraries: syntax error "$build_index = ""

Quote Reply
Error including libraries: syntax error "$build_index = ""
Hi the following message was recived.

Error including libraries: syntax error at /home/atwab/public_html/links/admin/links.cfg line 129, near "$build_index = ""

This is what the line in my links.cfg file looks like $build_index = "index.html"

Make sure they exist, permissions are set properly, and paths are set correctly.


Do you know what to do. Please help.

Thanks Adam Vallee
atwab@home.com
Quote Reply
Re: Error including libraries: syntax error "$build_index = "" In reply to
You are missing a semi-colon...The codes you've provided should look like the following:

Code:
$build_index = "index.html";

Regards,


------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Error including libraries: syntax error "$build_index = "" In reply to
Thanks I tryed that. it did not work

if you whant you can look at my coad

http://www.atwab.com/links/admin/links.cfg
Quote Reply
Re: Error including libraries: syntax error "$build_index = "" In reply to
http://www.atwab.com/links/you/
admin.txt - admin.cgi
links.txt - links.cfg

This is the location of the easy to read
text files Please take a look if you have time. Thank you so much. It is so kind of you to dovote your time and energy to people for free.

Thankyou Adam Vallee
atwab@home.com
Quote Reply
Re: Error including libraries: syntax error "$build_index = "" In reply to
The following codes are WRONG!

Code:
$build_index = "/home/atwab/public_html/links/index.html";

Change them to the following (as I wrote before) Frown....

Code:
$build_index = "index.html";

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Error including libraries: syntax error "$build_index = "" In reply to
Ok i set it back up to the way it was before

Like :
$build_index = "index.html";

But it gave me the same message. It's like someones out to get me.

the following like is the same file you looked at befor ecpt i made te updates that you gave me, and made a TXT copy for easer reading.

http://www.atwab.com/links/you/
admin.txt - admin.cgi
links.txt - links.cfg
This is the location of the easy to read
text files Please take a look if you have time. Thank you so much. It is so kind of you to dovote your time and energy to people for free.

Thankyou Adam Vallee
atwab@home.com
Quote Reply
Re: Error including libraries: syntax error "$build_index = "" In reply to
*sigh*

Well, there are definitely OTHER syntax errors in your links.cfg before the line where the $build_index is located...


Here are some that I found:

1) The following line:

Code:
$db_admin_email = 'linksadmin\@atwab.com';

You do NOT need the escape character, and the codes should look like the following:

Code:
$db_admin_email = 'linksadmin@atwab.com';

2) What the heck are the following codes for:

Code:
%db_ignore_doubles = ( www.jkghjfgdf.com" => 1 );

Either delete this line or change the codes to the following:

Code:
%db_ignore_doubles = (
www.jkghjfgdf.com => 1
);

3) I don't know why the heck you have the following codes:

Code:
if ($ENV{'PATH_INFO'} =~ m,^/category,) {
require "$db_lib_path/category.def";}else {
require "$db_lib_path/links.def";
}


But I would delete them.

4) The following lines need to be changed:

Code:
$db_mail_path = "/usr/lib/sendmail -t";

to the following:

Code:
$db_mail_path = "/usr/lib/sendmail";

5) Also...most if not ALL of your variable definitions are incorrect! Change all your variable definitions toward the top of your file to the following:

Code:
$db_script_url = $db_dir_url . "http://atwab.com/links/admin/admin.cgi";

to the following:

Code:
$db_script_url = "http://atwab.com/links/admin/admin.cgi";

Code:
$build_new_path = $build_root_path . "/home/atwab/public_html/links/New";

to the following:

Code:
$build_new_path = $build_root_path . "/New";

Code:
$build_cool_path = $build_root_path . "/home/atwab/public_html/links/Cool";

to the following:

Code:
$build_cool_path = $build_root_path . "/Cool";

Code:
$db_header_path = $db_script_path . "/home/atwab/public_html/links/header";

to the following:

Code:
$db_header_path = $db_script_path . "/header";

Do you get the picture?

There are more variables that you need to change...

Good luck!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.