Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installing but having problems in admin section


NoID

Recommended Posts

Posted

Well i am trying to install a PDF Price list 1.0 but i am having problems when i go to admin section, it says on the top

Parse error: parse error, unexpected '}' in /home/httpd/vhosts/*****/httpdocs/eshop/admin2/includes/boxes/tools.php on line 34

 

This is what i have put in

<?php

/*

$Id: tools.php,v 1.21 2003/07/09 01:18:53 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- tools //-->

<tr>

<td>

<?php

$heading = array();

$contents = array();

 

$heading[] = array('text' => BOX_HEADING_TOOLS,

'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));

 

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_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>');

'<a href="' . tep_href_link(FILENAME_PDF_PRICELIST) . '"class="menuBoxContentLink" target="_blank" >' . BOX_TOOLS_PDF_PRICELIST . '</a><br>' .

}

 

$box = new box;

echo $box->menuBox($heading, $contents);

?>

</td>

</tr>

<!-- tools_eof //-->

 

 

can some here please help me solve this problem

thank you

NoID

Posted

Looks like you got confused by the instructions. Put PDF pricelist before Who's Online.

 

<?php
/*
$Id: tools.php,v 1.21 2003/07/09 01:18:53 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright ? 2002 osCommerce

Released under the GNU General Public License
*/
?>
<!-- tools //-->
<tr>
<td>
<?php
$heading = array();
$contents = array();

$heading[] = array('text' => BOX_HEADING_TOOLS,
'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));

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_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_PDF_PRICELIST) . '"class="menuBoxContentLink" target="_blank" >' . BOX_TOOLS_PDF_PRICELIST . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>');
}

$box = new box;
echo $box->menuBox($heading, $contents);
?>
</td>
</tr>
<!-- tools_eof //-->

Contributions

 

Discount Coupon Codes

Donations

Posted

Hi thanks for a reply, i have installed it but where is it, i cant find lol

can you please help me and thank you for free support

Posted

this is what i am getting now,

 

 

Warning: fopen("/home/httpd/vhosts/*****/httpdocs/eshop/pricelist/pricelist_1.pdf", "wb") - Permission denied in /home/httpd/vhosts/*****/httpdocs/eshop/admin2/pdf_fpdf.php on line 1065

FPDF error: Unable to create output file: /home/httpd/vhosts/*****/httpdocs/eshop/pricelist/pricelist_1.pdf

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...