Jump to content

All Activity

This stream auto-updates     

  1. Yesterday
  2. Thanks for the hint re global.inc.php prefix. I know what the problem is now, will correct it next time I go to the library and access the high-speed internet. I noticed a bug today in the modified store when I went to the back end to change material pricing. I figured out what was causing the problem and modified a custom file called products.materials.inc.php and that took care of it. I went there because I also saw in the error list, "unable to load content for products: materials." Hopefully by tomorrow all the errors will be finished. I'm glad I checked in the cpanel error folder as well as the cubecart admin system error log, as the errors only showed up in the folder. Then I'll download the entire store and upload it again to a test2 folder, using the library's high-speed internet.
  3. The {$NAVIGATION_TREE} is built from the element.navigation_tree.php template. This template is used in a recursive manner - that is, its pattern fits no matter how deep any one category and its children is found in the entire structure. However, for Foundation, the top category only drops down the immediate child layer. Other skins could go further. Styling is accomplished in the skin's CSS files.
  4. Hi, Just out of curiosity, how the template of the {NAVIGATION_TREE} can be edited if someone wants to change the colour, font, layout etc.. Thank you again Madan
  5. The way CubeCart is currently coded, the category display is built from a template. Thereafter, the cached rendered template is used. We could have CubeCart populate and render an additional template. Let's explore that later. For now, bring the code snippet back up for editing. Find: $raw_cat_list_result[$cat_record['cat_id']] = $cat_record; Add after: $raw_cat_list_result[$cat_record['cat_id']]['url'] = $GLOBALS['seo']->generatePath($cat_record['cat_id'],'cat',null,true,true); You now have $CAT.url as a template variable within the {foreach} block. (Note: I am believing there is a problem with saving an existing but edited snippet. It gets databased, but may not replace the actual snippet file in the /includes/extra/ folder. If you find that there is no url element in the $CAT iteration, try bringing the snippet up for editing and save it again.) (Found the issue. The admin MUST clear the cache after saving the code snippet.)
  6. Hi, I am back again with a new query. How do I generate the URL for each category in the category list so when a category name is clicked, the content page will be populated by the relevant products! Currently, it is working from the Navigation Bar but the problem is the Whole Navitaion Bar has been built as an html object with a variable name {NAVIGATION_TREE} and I don't know how this HTML object is formed and how I can access individual variables in this object in CubeCart v6. The whole navigation bar is included inside the main page as box.navigation.php. Any explanation will be much appreciated. Regards Madan
  7. Yes it does have the new store folder specified there, I didn't write it in! shop6.2.1.test is the exact name of the folder. I may just go to the library where I can access high speed internet, and start fresh with a test2 folder, that way I can test filezilla to make sure both my downloaded copy is good and can also upload correctly. I would have to do that anyway if my store ever went kaput, so I might as well try it now to see if will even work. If it does, then I will keep a good and current copy downloaded on my computer knowing it will work if I ever have to upload it back. Since I've never actually uploaded my entire store back online before, I'm not even sure at this point if the downloads are good, so will be testing this out soon. Thanks for the info on the .htaccess file, I will check and make sure that it's updated afterward. I also have another .htaccess file same level as the old index.html file, that one just redirects from my website url to website url/shop6.2.1 and then to the storefront. I don't think that one affects cubecart, only web surfers who type in the url and don't know anything about the store folder, redirects to the store. ## Default store 404 page ErrorDocument 404 "<html></html> ##### START CubeCart .htaccess ##### ### GZIP Compression ### <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </ifmodule> ### Files Expiration ### <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/html "access 0 seconds" ExpiresDefault "access 7 days" </IfModule> ### File Security ### <FilesMatch "\.(htaccess)$"> Order Allow,Deny Deny from all </FilesMatch> ### Apache directory listing rules ### DirectoryIndex index.php index.htm index.html IndexIgnore * <ifModule mod_headers.c> Header always append X-Frame-Options SAMEORIGIN </ifModule> ### Rewrite rules for SEO functionality ### <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /shop6.2.1.test/ ##### START v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$ index.php?_a=category&cat_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=document&doc_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ index.php?_a=product&product_id=$1&%1 [NC] RewriteCond %{QUERY_STRING} (.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ index.php?_a=saleitems&%1 [NC,L] ##### END v4 SEO URL BACKWARD COMPATIBILITY ##### RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA] </IfModule> ### Default store 404 page ### ErrorDocument 404 /shop6.2.1.test/index.php ## Override default 404 error document for missing page resources ## <FilesMatch "\.(gif|jpe?g|png|ico|css|js|svg)$"> ErrorDocument 404 "<html></html> </FilesMatch> ##### END CubeCart .htaccess #####
  8. You have another conversation discussing the SSL issue.
  9. You should also check the .htaccess file of the store in the /cubecart-store-test/ folder. Be sure that the RewriteBase directive has /cubecart-store-test/ for it's value. As for softaculous, there will be a hosting provider viewing the forums shortly who may have some info for you. The "whatever" is not allowed as a key is caused by the global.inc.php values for the database not being 100% correct. Maybe the tables have a prefix, but that prefix is not in the global.inc.php file.
  10. Last week
  11. Decided to go ahead and create a duplicate store for testing. I went to cpanel to try copying my entire cubecart version 6.2.1 folder into a test folder, cubecart-store-test. I selected all, copied, and gave the new folder name. Everything looked good, so I also created a new db and then uploaded my current db into that. And I went to global.inc in the new folder and gave it the name of the new db to use. Then I went to log in at the new folder admin and there was no login screen. I checked again, and saw that all the subfolders had copied over except one, the admin folder. So I went back and copied just the one folder over. I thought that the first folder which was admin had not been selected with the select all and that was the problem. But after I copied over the one folder, I could see that it disappeared once again. It says 755 like the other folders but it didn't want to be copied over! Then I went to filezilla and uploaded it that way. I've got the login page now, but after I entered my password, I received a can't connect page error. Softaculous says they can copy or clone a store so it can be tested this way, called staging. I was going to try that way, but this way seemed simpler to me. Is the way I'm trying to do it not going to work, or do I just have to tweak some more files besides just the global.inc ? By the way, I am getting no more errors in the back end error tab, but while I was in cpanel, I saw an error_log folder and checked it. I am getting some errors there, as listed below, but I guess they can't be that big or I would see them listed in the back end error tab. [17-Aug-2018 16:41:19 Canada/Mountain] PHP Notice: `latest` is not allowed as a key in 'CubeCart_inventory' table! in /home/user4087/public_html/shop6.2.1/classes/db/database.class.php on line 914 [17-Aug-2018 16:41:19 Canada/Mountain] PHP Notice: `doc_privacy` is not allowed as a key in 'CubeCart_documents' table! in /home/user4087/public_html/shop6.2.1/classes/db/database.class.php on line 914
  12. Thank you, bsmither! That worked. One thing down....now trying to figure out how to upgrade to V6. Re: 2 public_html files....JustHost said their techs made a backup of my site the other day (when we were trying to figure out the SSL problem); hence the 2nd public_html. They said I could just delete it. Re: SSL problem....Funny thing...when I type https://www.cactusandcoyote.com, I get the wrong color background, no logo, lost links/photos to 'latest products'. BUT, when I start clicking on categories, even on HOMEPAGE, it takes me to my correct website. I just don't get it. Anyway....thanks again. A~
  13. Is there anything in the public_html;; folder? What is the timestamp on that folder versus public_html? If so, you may need to get some advice from your hosting provider. Personally, I do not know if a folder having trailing semi-colons means anything. You will need to delete code. Go to /store/skins/BlueVibranceCC4/styleTemplates/global/index.tpl and find and delete: May not be exactly as follows-- <script src="{$STORE_URL}/peel/peel.js" type="text/javascript"></script> I can't find any other mention of 'peel' in the code.
  14. I am currently using CubeCart V4.3.3. (eventually will upgrade to V6...different topic) 1) I have a 'peel mod' that uses Java. I'd like to get rid of it, but haven't been in my files in a while and am rusty. Can I safely delete 'just' the public_html/peel file or do I have to go into another file and delete code? Inspecting the top right corner of my site gives me some info but I don't know exactly what to delete. What file do I find the code? 2) Is it normal to have a public_html AND a public_html;; folder? I just noticed this in my FTP program. Can I dump the one with ;; after it? I have no idea why it's there. Thanks in advance, A~ www.cactusandcoyote.com
  15. roryt

    Clone Site problems

    Hi So I downloaded both includes/global.inc.php files and as you suspected they were somewhat different. So I altered the global.inc.php file for the recipient site to mimic the entries for the donor not the actual relevant information but the $glob entries. added information such as cub_ which was not present and then saved it and uploaded it after a couple of false starts due to syntax errors (my ability to code is rubbish) it now appears to be working. Thank you very much for your input. Regards
  16. bsmither

    Sitemap issues

    Regarding "Stored session data did not match DB record.". This will likely show that the version of the web browser changed. * I understand that Chrome could get upfated without your knowledge or consent, sometimes several times a day. (Maybe that's an exaggeration.) * Some browsers have a "do not track/profile me" feature that will randomly change the User-Agent string to a random string of some other type of browser. CubeCart does not like this.
  17. bsmither

    Clone Site problems

    If you are sure that the CubeCart file /includes/global.inc.php has values for the correct database, then clear the cache. Although the admin does not use the cache - so if admin is showing the test contents of a freshly created database, the likely problem is the global.inc.php file. But you say the fresh database has been replaced by a copy of an existing database. Does the copy of the existing database have names of tables that have a prefix? pre_CubeCart_inventory.
  18. roryt

    Clone Site problems

    No they list the test catagory and test product only and thanks for the response
  19. havenswift-hosting

    Sitemap issues

    Your latest issue has nothing to do with the sitemap problem from your OP and can pretty much be ignored. It simply means that for that user, something has changed in their session data - if you read the whole message and compare the two records, you will see what the difference is. It could be that the IP address changed or the browser was different in some way. You have a much bigger site than the vast majority of CubeCart users who generally have terns, hundreds or maybe a few thousand products so the sitemap creation is always going to take a VERY long time and almost certainly you are hitting some form of hosting account resource limit. We never recommend using the built in sitemap generator and many of our clients use a third party piece of software that we resell called XML Sitemap. This is a fantastic bit of software that is also pretty cheap and can be run via cron (so no need for you to remember to do it daily / weekly etc) can be configured with a huge amount of different settings from excluding certain patterns of urls, to throttling the crawling process so it doesnt overuse resources and it can also create image sitemaps (very important alongside the normal url sitemap) and also video, mobile, news sitemaps as well if required.
  20. John v

    Sitemap issues

    The following error appears and no sitemap is being generated at all:- "PHP Warning: Stored session data did not match DB record. Session aborted as possible session hijack." The file referred to in the error is "/classes/session.class.php on line 706" Any clues?
  21. Oh yes, sorry for forgetting to mention. I'm always up to date so to speak... as soon (almost) as there is a new version I will apply that to the site. Fore last version was 6.2.1 Well now I do remember that the Cubecart support team (Al Brookbanks) made a Cubecart software adjustment or so because it wasn't possible for me to create language files in the email contents documents. I will also try to send a mail to Al about this issue. - I just did.
  22. Upgraded to the latest version -- from what version? I cannot find a reason for your observation.
  23. bsmither

    Digital Certificate Renewal

    From FirstData or Authorize-- you will be using "hosted" if your customer goes there to pay, or "API" if the customer stays on your site.
  24. bsmither

    Clone Site problems

    Do the categories, products, and documents show in the respective lists in admin?
  25. Hi! Well, I need some advice.. Since I think the last CC update, when I set my store language from Dutch to US al my languages (US, UK, and German) different than Dutch are gone in the site Documents (welcome page, about, shipping, etc.) In the admin the translation flags are gone. Restore a backup doesn't do the trick. A database backup (cPanel, new DB, import (backupfile) and link to user) will restore the language files. Jeroen
  26. I received a message from my credit card company saying "It’s time to renew digital certificates in your certificate store for the Payeezy® Gateway" They say "This update does not apply to clients using Hosted Checkout, Payeezy API, Payeezy.JS, Android Pay™ or Apple Pay®. " Is there an obvious way to determine whether Cubecart uses the Payeezy API? Or is this a question for Payeezy? I think I'm using code I hacked up from either FirstData or Authorize.
  1. Load more activity


  • Newsletter

    Want to keep up to date with all our latest news and information?

    Sign Up
×