Latest News: (loading..)
Harald Ponce de Leon

osCommerce Online Merchant v2.3.4

102 posts in this topic

Moving to 2.3.4 hit a test bump.  On the admin side.  Uploaded to its on directory under my web site, so I can test it out.  The catalog side is coming up.  I'm stromped on the admin, Can not get the login to come up.  I'm using the latist Firefox.  Here is the information.

 

https://www.ladybuggardendecor.com/lbg234/adminlb/login.php?action=process

 

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    This problem can sometimes be caused by disabling or refusing to accept cookies.

 

This is my config file for the admin:

 

  define('HTTP_SERVER', 'http://www.ladybuggardendecor.com/lbg234/');
  define('HTTPS_SERVER','https://www.ladybuggardendecor.com/lbg234/');
  define('HTTP_CATALOG_SERVER', 'http://www.ladybuggardendecor.com/lbg234/');
  define('HTTPS_CATALOG_SERVER', 'https://www.ladybuggardendecor.com/lbg234/');
  define('ENABLE_SSL', true);
  define('ENABLE_SSL_CATALOG', 'true');
  define('HTTP_COOKIE_DOMAIN', 'https://www.ladybuggardendecor.com/lbg234/adminlb/');
  define('HTTPS_COOKIE_DOMAIN', 'https://www.ladybuggardendecor.com/lbg234/adminlb/');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_FS_DOCUMENT_ROOT', '/home/content/l/a/d/xxxxxxxx/html/');
  define('DIR_WS_ADMIN', 'adminlb/');
  define('DIR_WS_HTTPS_ADMIN', 'adminlb/');
  define('DIR_FS_ADMIN', '/home/content/l/a/d/xxxxxxxx/html/adminlb/');

 

What do I have wrong.  Thanks ahead of time.

Share this post


Link to post
Share on other sites

Lots of problems. Try this (assuming that the paths are correct. Please check; I don't know what your server paths are)
 

  define('HTTP_SERVER', 'http://www.ladybugga.com');
  define('HTTPS_SERVER','https://www.ladybugg.com');
  define('HTTP_CATALOG_SERVER', 'http://www.ladybugga.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.ladybugg.com');
  define('ENABLE_SSL', true);
  define('ENABLE_SSL_CATALOG', 'true');
  define('HTTP_COOKIE_DOMAIN', 'www.ladybugga.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.ladybugga.com');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_FS_DOCUMENT_ROOT', '/home/content/l/a/d/xxxxxxxx/html/');
  define('DIR_WS_ADMIN', '/lbg234/adminlb/');
  define('DIR_WS_HTTPS_ADMIN', '/lbg234/adminlb/');

Regards
Jim

Share this post


Link to post
Share on other sites

Thank you, That was a big help.  I had the paths wrong.  Trying to use the supdirectory lbg234 for now untill I get on the catalog side login to work and make sure I have no errors before moving it the live side.  :)

Share this post


Link to post
Share on other sites

I went live with 2.3.4.  1st problem, my left column went away in admin.  What do I need to look for to fix?

Share this post


Link to post
Share on other sites

Found it.  Had 1 sitting wrong in config.php.  Thanks

Share this post


Link to post
Share on other sites

I have one hickup with the Content under Modules.  When I click on it I get the following error:

Parse error: syntax error, unexpected '[' in /home/content/l/a/d/lady3597/html/includes/modules/content/login/cm_login_form.php on line 77

 

Simple fix you say :)

 

But I can not see anything wrong with the line.  I has been working fine.  Here is a couple of lines in the file:

 

        tep_session_register('customer_zone_id');
77 > $customer_default_billing_address_id = customer['customers_default_billing_address_id'];
        tep_session_register('customer_default_billing_address_id');
        $customer_default_shipping_address_id = $customer['customers_default_shipping_address_id'];
        tep_session_register('customer_default_shipping_address_id');

 

If I block it (line 77) with the 2 slashes //, and then go back to admin, module and click on content it opens up.  I don't see what is wrong with bracket '['.  All the other lines run. 

 

Can you see what is wrong?

Share this post


Link to post
Share on other sites

Line 77 is missing a dollar sign:

 

 

$customer_default_billing_address_id = $customer['customers_default_billing_address_id'];

 

Regards

Jim

 

Share this post


Link to post
Share on other sites

Do you know how many times I looked at that code.  Time to quite for the day.  Thanks and that was it.  It must have been wrong for a long time and just now shown up.  It was from a address manager I added a while ago. 

 

O.K.  Thanks again :)

Share this post


Link to post
Share on other sites

@@dculley  I've done exactly that more often than I can remember. Fortunately Eclipse points out errors like that. You might want to upgrade your editor.

 

Regards

Jim

Share this post


Link to post
Share on other sites

I use note++ most of the time and MS Expression (MS does not show me errors).  I don't see errors until I upload the files to the live site.   What do you suggest? 

 

That is why you saw me use ldg234 directory, to upload too so that I could test out the 234 with out shutting down the site.  I now have 234 running live.  The only thing that I have not done is install the module content login files.  My login and create account is very modified.  So I'm using my old files for now and they are working.  I'm not sure how to breake out the coding. 

 

Thanks again,  Your support and help means a lot.

Share this post


Link to post
Share on other sites

I use Eclipse, which is free/open source. It takes a bit of work to set up, but the result is worth it. There are others, but I have no experience with them so can't recommend any. I remember a thread on this forum where people recommended editors, but I didn't bookmark it.
 
Regards
Jim

Share this post


Link to post
Share on other sites

Thank you and I will give it a try.  Always willing to try new things.

Share this post


Link to post
Share on other sites

Have problem in admin with pictures not showing up in the catalog.  The directory and item pic's are not showing up.  You can see the quick flash of a box but the image is not showing up.  All I have is the below.

 

Date Added: 03/24/2012 Last Modified: 12/27/2013 Flags
9606.jpg
Subcategories: 20
Products: 752

 

I thought it might be my adminlb/configure.php file.  But I can not see an error there.  But you magic eyes can.

 

  define('HTTP_SERVER', 'https://www.ladybuggardendecor.com');
  define('HTTPS_SERVER','https://www.ladybuggardendecor.com');
  define('HTTP_CATALOG_SERVER', 'https://www.ladybuggardendecor.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.ladybuggardendecor.com');
  define('ENABLE_SSL', 'true');
  define('ENABLE_SSL_CATALOG', 'true');
  define('HTTP_COOKIE_DOMAIN', 'www.ladybuggardendecor.com');
  define('HTTPS_COOKIE_DOMAIN', 'www.ladybuggardendecor.com');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_FS_DOCUMENT_ROOT', '/home/content/l/a/d/xxxxxx/html/');
  define('DIR_WS_ADMIN', '/adminlb/');
  define('DIR_WS_HTTPS_ADMIN', '/adminlb/');
  define('DIR_FS_ADMIN', '/home/content/l/a/d/xxxxxx/html/adminlb/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_FS_CATALOG', '/home/content/l/a/d/xxxxxx/html/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

Not sure where else to look.

Share this post


Link to post
Share on other sites

When I click on edit, the pictured shows up, click save and the listing screen the picture will not come up.

Share this post


Link to post
Share on other sites
  define('HTTP_SERVER', 'http://www.ladybuggardendecor.com');
  define('HTTPS_SERVER','https://www.ladybuggardendecor.com');
  define('HTTP_CATALOG_SERVER', 'http://www.ladybuggardendecor.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.ladybuggardendecor.com');
  define('ENABLE_SSL', 'true');
  define('ENABLE_SSL_CATALOG', 'true');
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/adminlb');
  define('HTTPS_COOKIE_PATH', '/adminlb');
  define('DIR_FS_DOCUMENT_ROOT', '/home/content/l/a/d/xxxxxx/html/');
  define('DIR_WS_ADMIN', '/adminlb/');
  define('DIR_WS_HTTPS_ADMIN', '/adminlb/');
  define('DIR_FS_ADMIN', '/home/content/l/a/d/xxxxxx/html/adminlb/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_FS_CATALOG', '/home/content/l/a/d/xxxxxx/html/');

You can try that do no harm to test

 

Are  you sure your path is html and not public_html may be just a server thing  of course ?

Share this post


Link to post
Share on other sites

Its the same pathing as the 2.3.3.4 and before it.  The only differance is the cookie addins.  I'm not sure that is in the configure file.  The images pops up on edits, invoice, packing slips and even checkout.  Just the (what I call column down screens) do they not show up.  You can see the address of the image. 

Share this post


Link to post
Share on other sites

The above problem is with the "on the fly" thumbnailer add on, I believe.  I have put the question to the writer of the add-on.

 

Other than that the 2.3.4 seems to be running. 

 

Question – should I upgrade to PHP5.3?   I'm in no rush, the last time I jumped to an PHP upgrade I knocked out my site. 

Share this post


Link to post
Share on other sites

Not sure of this problem.  Since the upgrade to 2.3.4 checkout_success, it has not been the same.  The page is not lining up.  The picture I have attached will show how everything moved up.  This happens wither I turn on or off the new module ‘content’ checkout_sussess. 

 

Any ideas on what I need to do to fix this?post-303521-0-58880200-1407959498_thumb.jpg 

Share this post


Link to post
Share on other sites

I finely found the error in the checkout_success.php.   A missing closing </div>.  That did not show up in 2.3.3.4 ( or thers) until the upgrade to 2.3.4.  Going to tavern now. :)

ArtcoInc likes this

Share this post


Link to post
Share on other sites

After installing the force HTTPS in admin portion of the 2.3.4 upgrade I found I could not log in as administrator.  

 

Tried a bunch of things to no avail, but finally got things going by logging out as admin while in Chrome, then activating the addon from my cPanel via the admin configure.php, then logging back on as admin in Firefox.   That worked

 

I then logged out of Firefox, went back to Chrome, cleared cookies, history, passwords, etc, then logged back in successfully in admin with HTTPS showing correctly.  

 

Took a while to figure that one out.

Share this post


Link to post
Share on other sites

Don't know if this is a bug or something in my setup.  After installing the Force HTTPS on Admin when SSL is enabled portion of 2.3.4 I am getting partial insecure content on some pages with images.  Noticed this doing category work and the category images is not secure (http:) based on view source.

 

Double checked admin/categories.php, all looks good there as per the update.

 

It only seems to be the images causing this situation, but on on some pages.  There are other pages with images that are OK.  Pages without images all appear OK.

Share this post


Link to post
Share on other sites

@@altoid

 

1) On the "dashboard", the images for reviews (stars) are not SSL: http://forums.oscommerce.com/tracker/issue-710-ssl-image-in-reviews-admin-dashboard-module/

 

2) In admin/categories.php categories image is called over HTTP_CATALOG_SERVER

        $contents[] = array('text' => '<br />' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br />' . DIR_WS_CATALOG_IMAGES . '<br /><strong>' . $cInfo->categories_image . '</strong>');

Change the line to

        $contents[] = array('text' => '<br />' . tep_image(tep_catalog_href_link(DIR_WS_IMAGES . $cInfo->categories_image, '', 'SSL'), $cInfo->categories_name) . '<br />' . DIR_WS_CATALOG_IMAGES . '<br /><strong>' . $cInfo->categories_image . '</strong>');

3) In admin/categories.php same thing for products image (in the "review" case)

        <td class="main"><?php echo tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description; ?></td>

Change to

        <td class="main"><?php echo tep_image(tep_catalog_href_link(DIR_WS_IMAGES . $products_image_name, '', 'SSL'), $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description; ?></td>

Share this post


Link to post
Share on other sites

@@multimixer  Thanks George,  I have the images for products to show as secured content but the stars remain unsecured after applying the fix above.  

 

I updated admin/includes/modules/dashboard/d_reviews.php for that.  I'll have a look again tomorrow.

 

As well and FYI I updated admin/categories.php and admin/includes/functions/general.php as well.

 

Thanks

Share this post


Link to post
Share on other sites

I just noticed (because I was taking for granted all was well) that after you click on an image to view it, the add to cart, back buttons are not there.  Also related products are missing.  Any ideas?

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