Jump to content

Recommended Posts

Just upgraded using SourceTree from May 28th Accessiblity commit to Phoenix 1.0.4.0

SourceTree report all upgrades successful.

Have a problem in admin of double entries

Cleared browser cache a few times to no avail.

And still shows as 2.3.4.1 CE and not Phoenix

image.png.c996c7b32ed46e3594a4b62c4120e9ee.png

Share this post


Link to post
Share on other sites

😊 intresting, I've seen that type of error before, check to see if the files have been merged insted of overwriten.

Go to public_html/admin/includes/boxes/catalog.php

and check you only have this,

<?php
/*
  $Id$

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

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_CATALOG,
    'apps' => array(
      array(
        'code' => 'categories.php',
        'title' => BOX_CATALOG_CATEGORIES_PRODUCTS,
        'link' => tep_href_link('categories.php')
      ),
      array(
        'code' => 'products_attributes.php',
        'title' => BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES,
        'link' => tep_href_link('products_attributes.php')
      ),
      array(
        'code' => 'manufacturers.php',
        'title' => BOX_CATALOG_MANUFACTURERS,
        'link' => tep_href_link('manufacturers.php')
      ),
      array(
        'code' => 'reviews.php',
        'title' => BOX_CATALOG_REVIEWS,
        'link' => tep_href_link('reviews.php')
      ),
      array(
        'code' => 'specials.php',
        'title' => BOX_CATALOG_SPECIALS,
        'link' => tep_href_link('specials.php')
      ),
      array(
        'code' => 'products_expected.php',
        'title' => BOX_CATALOG_PRODUCTS_EXPECTED,
        'link' => tep_href_link('products_expected.php')
        
      )
    )
  );
?>

 


 

Share this post


Link to post
Share on other sites
37 minutes ago, JcMagpie said:

😊 intresting, I've seen that type of error before, check to see if the files have been merged insted of overwriten.

Go to public_html/admin/includes/boxes/catalog.php

and check you only have this,


<?php
/*
  $Id$

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

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_CATALOG,
    'apps' => array(
      array(
        'code' => 'categories.php',
        'title' => BOX_CATALOG_CATEGORIES_PRODUCTS,
        'link' => tep_href_link('categories.php')
      ),
      array(
        'code' => 'products_attributes.php',
        'title' => BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES,
        'link' => tep_href_link('products_attributes.php')
      ),
      array(
        'code' => 'manufacturers.php',
        'title' => BOX_CATALOG_MANUFACTURERS,
        'link' => tep_href_link('manufacturers.php')
      ),
      array(
        'code' => 'reviews.php',
        'title' => BOX_CATALOG_REVIEWS,
        'link' => tep_href_link('reviews.php')
      ),
      array(
        'code' => 'specials.php',
        'title' => BOX_CATALOG_SPECIALS,
        'link' => tep_href_link('specials.php')
      ),
      array(
        'code' => 'products_expected.php',
        'title' => BOX_CATALOG_PRODUCTS_EXPECTED,
        'link' => tep_href_link('products_expected.php')
        
      )
    )
  );
?>

 

 

Yes, I do have that exact file

Share this post


Link to post
Share on other sites
$cl_box_groups[] = array(
    'heading' => BOX_HEADING_CATALOG,
    'apps' => array(
      array(
        'code' => 'categories.php',
        'title' => BOX_CATALOG_CATEGORIES_PRODUCTS,
        'link' => tep_href_link('categories.php')
      ),
      array(
        'code' => 'products_attributes.php',
        'title' => BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES,
        'link' => tep_href_link('products_attributes.php')
      ),
      array(
        'code' => 'manufacturers.php',
        'title' => BOX_CATALOG_MANUFACTURERS,
        'link' => tep_href_link('manufacturers.php')
      ),
      array(
        'code' => 'reviews.php',
        'title' => BOX_CATALOG_REVIEWS,
        'link' => tep_href_link('reviews.php')
      ),
      array(
        'code' => 'specials.php',
        'title' => BOX_CATALOG_SPECIALS,
        'link' => tep_href_link('specials.php')
      ),
      array(
        'code' => 'products_expected.php',
        'title' => BOX_CATALOG_PRODUCTS_EXPECTED,
        'link' => tep_href_link('products_expected.php')
      )
    )
  );

 

Share this post


Link to post
Share on other sites

Ok it's strange are any of the other menus duplaicated?  Check path admin/includes/boxes

and see if you have any file duplication.

All the duplicated items are from catalog.php  the last one that is on it's own Testimonials is from another file which is why I suspected bad catalog.php file in /boxes


 

Share this post


Link to post
Share on other sites

The October 24th commit for Remove outdated banner system

In public_html/redirect.php

The change was to remove the code:

case 'banner':
      $banner_query = tep_db_query("select banners_url from banners where banners_id = '" . (int)$_GET['goto'] . "'");
      if (tep_db_num_rows($banner_query)) {
        $banner = tep_db_fetch_array($banner_query);
        tep_update_banner_click_count($_GET['goto']);
        tep_redirect($banner['banners_url']);
      }
      break;

Yet the newly uploaded file still contains the above code.

So no changes were made

I lso haven't applied any db changes as of yet either, I'm sure there are some changes needed

 

Share this post


Link to post
Share on other sites

Well if the path and files are correct then I suspect you have a bad config table in the db. It looks like it's loading some items twice. You could check it using Cpanel phpMyadmin ad see if duplicate enterys exist.

This can happen if files are deleted without uninstaling moduels.


 

Share this post


Link to post
Share on other sites

😂 Ok looks like you have duplicated files. In Phoenix catalog.php has been changed so it only has this,

 

<?php
/*
  $Id$

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

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_CATALOG,
        'apps' => array(
    )
  );
?>

The rest are now added using hooks so you are duplicating files.

so you have a mix of old files and new. That's what is causing it.

image.png.95ef9e0895a5a88d617d5facaadc5849.png

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites
14 minutes ago, JcMagpie said:

😂 Ok looks like you have duplicated files. In Phoenix catalog.php has been changed so it only has this,

 


<?php
/*
  $Id$

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

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_CATALOG,
        'apps' => array(
    )
  );
?>

The rest are now added using hooks so you are duplicating files.

so you have a mix of old files and new. That's what is causing it.

image.png.95ef9e0895a5a88d617d5facaadc5849.png

Thanks a million.

Sounds like an absolute mess.

What are weekends for! A drink or more and repairing the mess I've created.

Share this post


Link to post
Share on other sites

@Dnj1964,

Better go for the 1.0.4.1 version which includes a small error fix:

<?php
/*
  $Id$

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

  Copyright (c) 2019 osCommerce

  Released under the GNU General Public License
*/

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_CATALOG,
        'apps' => array(
      array(
        'code' => null,
        'title' => null,
        'link' => null
      )
    )
  );
  

 

Edited by raiwa

Share this post


Link to post
Share on other sites

Thank you.

Ok so I must be an idiot. Not really a question for debate...just the understated reality!!

In SourceTree:

Clone Gary's CE-Phoenix {Phoenix Folder}

Copied fresh 1.0.4.0 files into {Phoenix Folder}

Created a branch at 28th May - Accessiblity {My most current update}

In branch stage all changes

In branch commit changes

SourceTree says update from 2.3.4.1 to 1.0.4.0 successful...

SourceTree lies....

No files changed!!!!

Obviously a total idiot at the controls....

2 hours ago, raiwa said:

@Dnj1964,

Better go for the 1.0.4.1 version which includes a small error fix:


<?php
/*
  $Id$

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

  Copyright (c) 2019 osCommerce

  Released under the GNU General Public License
*/

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_CATALOG,
        'apps' => array(
      array(
        'code' => null,
        'title' => null,
        'link' => null
      )
    )
  );
  

 

 

 

1 hour ago, JcMagpie said:

😲 😊 Still only 1.0.4.0 officialy

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×