Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Jack,

 

Finally figured out how to get the SQL script to load into the database, but the same error that I had before (Not mentioned until now) still arises. Here it is:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/upper/public_html/catalog/admin/includes/boxes/tools.php on line 29

 

 

:blink: Have no idea how this is happening. Followed installation to the "T" Any help would be great.

 

P.S. Thanx for all the previous help you have provided. Helped out alot.

Posted

Its a typo on or above line 29 in catalog/admin/includes/boxes/tools.php - post part of that file.

 

Matti

Posted
Jack,

 

  Finally figured out how to get the SQL script to load into the database, but the same error that I had before (Not mentioned until now) still arises. Here it is:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/upper/public_html/catalog/admin/includes/boxes/tools.php on line 29

:blink: Have no idea how this is happening. Followed installation to the "T" Any help would be great.

 

P.S. Thanx for all the previous help you have provided. Helped out alot.

Posting the code around the line indicated (like lines 20 to 35, for example) would make it easier for someone to figure out what the problem is if it is a coding problem.

Posted

Sorry bout that. Kinda new at the "posting" Thing. Here is the code:

 

if ($selected_box == 'tools') {

$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_BANNER_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_BANNER_MANAGER . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CACHE) . '" class="menuBoxContentLink">' . BOX_TOOLS_CACHE . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>'

'<a href="' . tep_href_link(FILENAME_MAIL) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SEO_ASSISTANT) . '" class="menuBoxContentLink">' . BOX_TOOLS_SEO_ASSISTANT . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SERVER_INFO) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>');

}

Posted

More info: the only thing added to this file was this line:

 

'<a href="' . tep_href_link(FILENAME_SEO_ASSISTANT) . '" class="menuBoxContentLink">' . BOX_TOOLS_SEO_ASSISTANT . '</a><br>' .

 

Other than that, it is the original. Oh, I belive that I removed this line and restore the file back to its orginal content and recieved the same error. I am attempting to install Jacks Contribution of SEO Assistant.

Posted (edited)
More info: the only thing added to this file was this line:

 

'<a href="' . tep_href_link(FILENAME_SEO_ASSISTANT) . '" class="menuBoxContentLink">' . BOX_TOOLS_SEO_ASSISTANT . '</a><br>' .

 

Other than that, it is the original. Oh, I belive that I removed this line and restore the file back to its orginal content and recieved the same error. I am attempting to install Jacks Contribution of SEO Assistant.

Change line 29 from this:

 

'<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>'

 

to this:

 

'<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' .

 

(in other words, add " ." without the quotes at the end of the line).

 

Better yet, comment out the line by changing it to this:

 

//'<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>'

Edited by baddog
Posted

>_< DOH! You may verbaly mame me now. I can not belive I missed that. It even took me while to figure out the answer you sent. (Didn't see the period) and it even said it right there. Don't really understand though how it got removed. All I did was add a line of code. As soon as I put the period back, everything worked great, the first time. Thank you for your time. It is appreciated.

Posted
>_< DOH! You may verbaly mame me now. I can not belive I missed that. It even took me while to figure out the answer you sent. (Didn't see the period) and it even said it right there. Don't really understand though how it got removed. All I did was add a line of code. As soon as I put the period back, everything worked great, the first time. Thank you for your time. It is appreciated.

My pleasure.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...