Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Contribution Issue


366 replies to this topic

#341 jugui

  • Community Member
  • 2 posts
  • Real Name:juliano

Posted 31 December 2009, 19:23

View Posthonunet, on 17 October 2009, 10:26, said:

I am getting this error:


Parse error: syntax error, unexpected T_STRING in /home/content/i/k/u/xxxxxx/html/yunnan/admin/extra_info_pages.php on line 367

line 367-> <td class="main"><?phpecho tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;'?><select name="page_type" size=1>

to -> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;'?><select name="page_type" size=1>

#342 Glen C

  • Community Member
  • 6 posts
  • Real Name:Glen

Posted 17 March 2010, 06:41

Hi All,

Just read 18 pages and this hadn't been brought up. I have this contribution installed and using FCKeditor ver 2.6 When I load a very long page, the bottom few lines is being lost, not appearing on the Info Page or back in FCKEditor. I assumed it must be a limitation, but when I reload, each time it reduces the available space and more is lost. Any ideas? I also checked over at FCKeditor with no success.

Thanks Glen

#343 cidojt

  • Community Member
  • 3 posts
  • Real Name:Aparecido

Posted 17 April 2010, 22:51

hello, I installed this addon and in my Admin Categories another addon I use, the product tabs.
installing this with WYSIWYG HTMLArea (MULTI-LINGUAL) v1.7. in one of the lines of an error. As I do not understand php leave the question here as I proceed.

And I'm installing WYSIWYG_v1.9FR Gyakutsuki 30 Apr 2005

'm spending my categories here for you to help me.

I am grateful and thank you.
// Product Tabs 2.0 Start
            $description_query = tep_db_query("select language_id, products_name, products_description, products_spec, products_musthave, products_extraimage, products_manual, products_extra1, products_moreinfo, products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_id . "'");
// Product Tabs 2.0 End
            while ($description = tep_db_fetch_array($description_query)) {
// Product Tabs 2.0 Start              
			  tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " (products_id, language_id, products_name, products_description, products_spec, products_musthave, products_extraimage, products_manual, products_extra1, products_moreinfo, products_url, products_viewed) values ('" . (int)$dup_products_id . "', '" . (int)$description['language_id'] . "', '" . tep_db_input($description['products_name']) . "', '" . tep_db_input($description['products_description']) . "', '" . tep_db_input($description['products_spec']) . "', '" . tep_db_input($description['products_musthave']) . "', '" . tep_db_input($description['products_extraimage']) . "', '" . tep_db_input($description['products_manual']) . "', '" . tep_db_input($description['products_extra1']) . "', '" . tep_db_input($description['products_moreinfo']) . "', '" . tep_db_input($description['products_url']) . "', '0')");
// Product Tabs 2.0 End
            }

            tep_db_query("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . " (products_id, categories_id) values ('" . (int)$dup_products_id . "', '" . (int)$categories_id . "')");
            $products_id = $dup_products_id;
          }

          if (USE_CACHE == 'true') {
            tep_reset_cache_block('categories');
            tep_reset_cache_block('also_purchased');
          }
        }

        tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $categories_id . '&pID=' . $products_id));
        break;
      case 'new_product_preview':
// copy image only if modified
// Product Tabs 2.0 Start
//BOF UltraPics
   if (($HTTP_POST_VARS['unlink_image'] == 'yes') or ($HTTP_POST_VARS['delete_image'] == 'yes')) {
        $products_image = '';
        $products_image_name = '';
        } else {
//EOF UltraPics
// Product Tabs 2.0 End
      case 'new_product_preview': <!-- Error here *****************************************-->
        if (HTML_AREA_WYSIWYG_DISABLE == 'Disable') {
          // copy image only if modified
        $products_image = new upload('products_image');
        $products_image->set_destination(DIR_FS_CATALOG_IMAGES);
        if ($products_image->parse() && $products_image->save()) {
          $products_image_name = $products_image->filename;
        } else {
          $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : '');
        } else {
          if (isset($HTTP_POST_VARS['products_image']) && tep_not_null($HTTP_POST_VARS['products_image']) && ($HTTP_POST_VARS['products_image'] != 'none')) {
            $products_image_name = $HTTP_POST_VARS['products_image'];
          } else {
            $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : '');
          }
        }
        break;
    }
  }
// Product Tabs 2.0 Start


#344 countrygirlcandles

  • Community Member
  • 15 posts
  • Real Name:Ruby young
  • Gender:Female

Posted 22 July 2011, 08:47

would anyone be willing to help me convert this to the 2.3.1 ver of oscommerce?

#345 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 18 August 2011, 10:53

Hi, I have managed to add this contribution to my website (2.3) but only issue I seem to be having is whenever I am adding a new page I get the following error:

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\catalog\admin\includes\column_left.php:34) in C:\xampp\htdocs\catalog\admin\includes\functions\general.php on line 34

Any ideas why?

Thanks btw for this contribution.

#346 germ

  • Community Member
  • 13,564 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 18 August 2011, 10:55

Click the "Headers already sent" link in my signature.
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#347 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 23 August 2011, 10:46

germ, thanks for your response. I am guessing you meant the following link:

http://www.oscommerce.info/confluence/display/OSCDOC22/Error+*+Cannot+Add+Header+Information

I have looked through my english.php file and there was a blank link after the last ?> which i deleted (as your example showed) but my error seems to point to the column_left.php which also had an extra line, but the error still shows up? The error also seems to point to line 34, which is the following:

echo '<li><a href="' . $app['link'] . '">' . $app['title'] . '</a></li>';

Any ideas?

Thanks btw for your help. really appreciate it.

Edited by aftabn10, 23 August 2011, 10:58.


#348 germ

  • Community Member
  • 13,564 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 23 August 2011, 16:37

The code appears to be syntactically correct.

Can you post the entire error message?
:unsure:

If the "entire" message is just the "Headers already sent" error then post the entire file please.
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#349 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 26 August 2011, 11:32

germ thanks for your response. The entire error message that i am getting is the following:

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\oscommerce\catalog\admin\includes\column_left.php:34) in C:\xampp\htdocs\oscommerce\catalog\admin\includes\functions\general.php on line 34

Also i have attached the entire column_left.php file. Btw thanks for all your help, really appreciate it.

Attached Files


Edited by aftabn10, 26 August 2011, 11:34.


#350 germ

  • Community Member
  • 13,564 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 26 August 2011, 22:50

There's nothing wrong with that file.

I put it on my WAMP server and get no errors.

When you downloaded the contribution did you also download the "bug fix" (a newer version of admin/extra_info_pages.php)?
:unsure:

It's either that, the install directions are incorrect, or you did something you shouldn't have when installing it.
If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#351 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 29 August 2011, 13:25

thanks germ for having a look, i didnt download the bug fix so will have a look at that now and go through the installation notes to make sure iv covered everything.

#352 aftabn10

  • Community Member
  • 186 posts
  • Real Name:Aftab
  • Gender:Male
  • Location:Manchester

Posted 29 August 2011, 13:33

germ, apologies as the bug fix has got rid of that error, should have looked there first but thanks for the guidance really appreciate it.

#353 jhaugen

  • Community Member
  • 20 posts
  • Real Name:Jerry Haugen

Posted 27 December 2011, 23:43

I just installed "Extra pages-info box w/admin" 14Aug2011 with bug fix of the same date on a OSC2.3.1 installation with PHP5. No error messages or other issues with the store after installation.

For the index and contact us pages, it just adds the default text to the text I already had in the English language files. Deleting the default text in admin returned the pages to their original state.

It appears that creating a new page in admin doesn't really create a new page. Apparently I need to set up the page by creating a page file, language files and editing filename.php, bm_information.php etc THEN modify my new page file as per the contact_us example in the instructions (with the correct page type). Is that correct?

Also, I don't see a way to turn the page on/off from admin or a way to give a name for the link to the page in admin. What am I missing?




#354 nishanthan1989

  • Community Member
  • 12 posts
  • Real Name:nisanthan

Posted 26 January 2012, 16:18

i'm using wamp server , and tried this on a oscommerce that locally installed , but i got this error

Fatal error: Cannot redeclare tep_set_page_status() (previously declared in C:\wamp\www\test\admin\extra_info_pages.php:20) in C:\wamp\www\test\admin\includes\languages\english\extra_info_pages.php on line 28

#355 nishanthan1989

  • Community Member
  • 12 posts
  • Real Name:nisanthan

Posted 26 January 2012, 16:19

i'm using wamp server , and tried this on a oscommerce that locally installed , but i got this error

Fatal error: Cannot redeclare tep_set_page_status() (previously declared in C:\wamp\www\test\admin\extra_info_pages.php:20) in C:\wamp\www\test\admin\includes\languages\english\extra_info_pages.php on line 28

#356 nishanthan1989

  • Community Member
  • 12 posts
  • Real Name:nisanthan

Posted 27 January 2012, 06:27

i'm using wamp server , and tried this on a oscommerce that locally installed , but i got this error

Fatal error: Cannot redeclare tep_set_page_status() (previously declared in C:\wamp\www\test\admin\extra_info_pages.php:20) in C:\wamp\www\test\admin\includes\languages\english\extra_info_pages.php on line 28


#357 CKinCOS

  • Community Member
  • 6 posts
  • Real Name:CK Field

Posted 03 February 2012, 18:11

Hi all,

First I want to applogize in advance for being such a newb, also I did use the search engine, both on here, and on google, and I did not find what I was looking for.

So here's the issue, I'm trying to install this and I followed the instructions. But now when I log into the admin console->Modules->Boxes up in the upper right corner it shows "+ Install Module (2)" I click that to install my module and it only shows one module "Info Pages" (which I think is the one I'm after), but on the right there's just a purple triangle (play button) and no installation option (box) like there normally is.

I'm affraid I screwed up somewhere, but I'm still not familiar with the orientation, nor where to look. How does OSC know there's awating modules for install, and where does it look for them?

Also I've tried 2 different computers, and both IE and FireFox (IE has a similar issue sometimes with adding "products").

Thankyou so much for your help.

CK

#358 apolyshow

  • Community Member
  • 242 posts
  • Real Name:Andreas
  • Gender:Male

Posted 18 February 2012, 17:18

i am having this issue

Warning: Cannot modify header information - headers already sent by (output started at /home/iliofosg/public_html/eshop/downunder/includes/template_top.php:14) in /home/iliofosg/public_html/eshop/downunder/includes/functions/general.php on line 35

and with the headsent.php i am taking this

O/S = Linux.
downunder/includes/template_top.php has 74 lines.
The PHP start tag is on line 1.
The PHP end tag is on line 72.
Contents from start of file to the PHP start tag:

< ?php[0A]

-------------------------
Contents from PHP end tag to end of file:

?>[0A]
[0A]
< div[20]id="contentText">[0A]


Error Messages:

The closing PHP tag is not on the last line in the file.


-------------------------
Extended contents of the requested line [14] are:

< html[20]<?php[20]echo[20]HTML_PARAMS;[20]?>>[0A]

-------------------------
Raw contents of the requested line [14] are:

>


And hear is the code from template_top.php


<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2010 osCommerce
Released under the GNU General Public License
*/
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<

html <?php echo HTML_PARAMS; ?>>
<

head>
<

meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<

meta name="robots" content="noindex,nofollow">
<

title><?php echo TITLE; ?></title>
<

base href="<?php echo HTTP_SERVER . DIR_WS_ADMIN; ?>" />
<

!--[if IE]><script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/excanvas.min.js'); ?>"></script><![endif]-->
<

link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/ui/redmond/jquery-ui-1.8.6.css'); ?>">
<

script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery-1.4.2.min.js'); ?>"></script>
<

script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/jquery-ui-1.8.6.min.js'); ?>"></script>
<?php

if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>
<

script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/ui/i18n/jquery.ui.datepicker-' . JQUERY_DATEPICKER_I18N_CODE . '.js'); ?>"></script>
<

script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional[
'<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']);
</

script>
<?php
}
?>
<

script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/flot/jquery.flot.js'); ?>"></script>
<

link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<

script type="text/javascript" src="includes/general.js"></script>
<!-- boe box_social_bookmarks -->
<

link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/jquery.multiselect.css'); ?>">
<

link rel="stylesheet" type="text/css" href="<?php echo tep_catalog_href_link('ext/jquery/jquery.multiselect.filter.css'); ?>">
<

script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery.multiselect.min.js'); ?>"></script>
<

script type="text/javascript" src="<?php echo tep_catalog_href_link('ext/jquery/jquery.multiselect.filter.js'); ?>"></script>
<!-- eoe box_social_bookmarks -->
</

head>
<?php

// Discount Code 3.1.1 - start

if (basename($PHP_SELF) == FILENAME_DISCOUNT_CODES && isset($action) && $action == 'new') {
echo
'<body onload="onload();">';
}
else {
echo
'<body>';
}

// Discount Code 3.1.1 - end
?>
<?php

require(DIR_WS_INCLUDES . 'header.php'); ?>
<?php

if (tep_session_is_registered('admin')) {

include(DIR_WS_INCLUDES . 'column_left.php');
}
else {
?>
<

style>
#
contentText {

margin-left: 0;
}
</

style>
<?php
}
?>
<

div id="contentText">


What do i have to do?

Edited by apolyshow, 18 February 2012, 17:21.

One amateur made the Arc, 5.000 pro made the Titanic...

#359 apolyshow

  • Community Member
  • 242 posts
  • Real Name:Andreas
  • Gender:Male

Posted 18 February 2012, 18:06

I think i have fix it but when i am trying to use an external link it always gives me this
www.mydomain.gr/eshop/www.the_domain_that_i_want.gr

Where do i have made wrong?
One amateur made the Arc, 5.000 pro made the Titanic...

#360 GoTTi

  • Community Member
  • 438 posts
  • Real Name:GoTTi

Posted 04 April 2012, 17:29

so this works with os 2.3 right?