Jump to content


  • Posts

  • Joined

  • Last visited

Muscator's Achievements


Newbie (1/14)



  1. bsmither - you are as usual fantastic to spot the problems This did the trick - thanks a lot!
  2. here´s the .htaccess: ##### START CubeCart .htaccess ##### ### 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 / ##### 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 /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 #####
  3. It has several lines that says the same - actually the error log has been running for 2 years, since the original install, with absolutely no problems - it also ran on the old server until 2 days ago with no problems Right now I just tried to go back to PHP 5.6 from the present 7.3, just to see if it had any effect - still same error 500 blank page Hmnn - after going back to PHP5.6 the new following error occurred: [19-Jun-2020 22:45:53 Europe/Copenhagen] PHP Warning: Shipping not setup or allow no shipping not enabled in /usr/www/users/xxxx/classes/cubecart.class.php on line 1675 [19-Jun-2020 22:45:56 Europe/Copenhagen] PHP Warning: Shipping not setup or allow no shipping not enabled in /usr/www/users/xxxx/classes/cubecart.class.php on line 1675 [19-Jun-2020 22:46:36 Europe/Copenhagen] PHP Fatal error: require_once() [<a href='http://docs.php.net/manual/en/function.require.php'>function.require.php</a>]: Failed opening required '/home/testshop/public_html/includes/lib/smarty/plugins/modifier.replace.php' (include_path='.:/usr/local/lib/php/') in /usr/www/users/xxx/cache/skin/013463d28fb18a8fc0c766ac6b3777fc1a45f311_0.string.php on line 18 Hmmn - I can also see that it tries to fetch something from the old host - the part that says /home/testshop... Where do that come from and how can I modify it to show the present path?
  4. I get this output: [19-Jun-2020 19:59:59 UTC] PHP Warning: preg_match() [<a href='http://docs.php.net/manual/en/function.preg-match.php'>function.preg-match.php</a>]: The /e modifier is no longer supported, use preg_replace_callback instead in /usr/www/users/xxxxx/classes/seo.class.php on line 613 Line 613 says: if (preg_match('#^(.*/)?[\w]+.[a-z]+\?_a\=([\w]+)(?:\&(amp;)?([\w\[\]]+)\=([\w\-\_]+)([^"\']*))$#ieS', $path, $match)) {
  5. Hi, I have just migrated from one host to another - all went fine and all apparently worked, that is until the first customer after the migration tried to order When clciking the payment button he would normally be moved to the gateway choice page - instead of this he gets a server 500 error ALL files have been transferred correct and the database is intact and works just fine Only issue is the payment gateways that does not show up when trying to pay......? Anybody outthere having an idea that can help me? Issue: "index.php?_a=gateway - produces server 500 error"
  6. bsmither, Thanks for clarifying code for a non-experienced 'coder' This did the trick and seems to work correct - I will report if any other issues occur Thanks for invaluable help here.....
  7. bsmither,geotex, Thanks for your valuable input. I have tried applying "if(!($GLOBALS['config']->get('config', 'disable_estimates')=='1') && $user_defined && !CC_IN_ADMIN" to the END of the very long line starting in line 457 after 'false;' This results in a 500 error, so I am probably applyning it wrongly as Geotex apparently has tested it and found no problems...? Any particular way it should be added if not directly after 'false;'? (please excuse my novice questions) Here is the code I have tried: " // Check state $country_id = getCountryFormat($address['country'], 'numcode', 'id'); if(!($GLOBALS['config']->get('config', 'disable_estimates')=='1') $user_defined && !CC_IN_ADMIN && $_GET['_a']!=='addressbook' && ((empty($address['state']) && !empty($address['country'])) || ($GLOBALS['db']->select('CubeCart_geo_zone',false, array($state_field => $address['state']))==false) && $GLOBALS['db']->select('CubeCart_geo_zone',false, array('country_id' => $country_id)))) { $address_description = empty($address['description']) ? '' : ' (&quot;'.$address['description'].'&quot;)'; $GLOBALS['gui']->setError(sprintf($GLOBALS['language']->address['check_state'],$address_description)); httpredir("?_a=addressbook&action=edit&address_id=".$address['address_id']); return false; } " " // Check state $country_id = getCountryFormat($address['country'], 'numcode', 'id'); if($user_defined && !CC_IN_ADMIN && $_GET['_a']!=='addressbook' && ((empty($address['state']) && !empty($address['country'])) || ($GLOBALS['db']->select('CubeCart_geo_zone',false, array($state_field => $address['state']))==false) && $GLOBALS['db']->select('CubeCart_geo_zone',false, array('country_id' => $country_id)))) { $address_description = empty($address['description']) ? '' : ' (&quot;'.$address['description'].'&quot;)'; $GLOBALS['gui']->setError(sprintf($GLOBALS['language']->address['check_state'],$address_description)); httpredir("?_a=addressbook&action=edit&address_id=".$address['address_id']); return false; if(!($GLOBALS['config']->get('config', 'disable_estimates')=='1') && $user_defined && !CC_IN_ADMIN "
  8. bsmither, as you forecasted, some problems arose... When logged in as a customer and trying to checkout, the following error occurs: " We seem to have a problem with your address ("Standard faktureringsadresse"). Please check the value for "County" before proceeding." Furthermore the client can´t delete items in the cart when logged in. Any attempt to change anything when logged in results in the above error.
  9. Geotex is right in pointing this out, but I actually asked for exactly this solution and that is exactly what I got. The good thing is, that if I suddenly decide to sell to countries with states, I just reverse what bsmither recommended and I will have states back as an option - so anyone can use it and anyone can reverse it if needed at any time...
  10. Hi again Geotex and others, bsmither solved the matter completely in another topic (Customize field on order) and with thorough instructions and first tests shows that his solution works. Thanks for all the ideas and your time on trying to help me....
  11. Thanks bsmither for the valuable input and your time on this topic, It seems as if the problem is solved - I will test again and report back asap
  12. Geotex, Thanks again for taking time to try and assist me in my challenges with cubecart. The file you mention in js only seems to be present in the default skin 'foundation' and not in any of the other installed skins - I think that maybe some of the other skins borrow some js functionality from the default skin...? Anyway - I have changed all 'state' references from 'true' to 'false', saved and then cleared cache in cubecart - then tested again - unfortunately to no avail - the 'state' field still claims it is 'required' I have also cleared the browser, changed to a new browser that hasn´t been used on the shop before and tested - to no avail Browsers used are Newest Edge,Firefox and Chrome My thoughts are that maybe the reason the error message 'billing address missing' comes when ever the field 'state/county' is changed from 'required' to just 'textbox' in the 'content.checkout.confirm.php' file comes because the 'state' field somehow interacts with the 'country' field and whenever the js can´t validate the 'state' field in conjunction with the country, it errors with the 'billing address missing' error...?
  13. Hi Geotex, Thanks for taking time to suggest a solution to my problem.. Actually I have already made that change, unfortunately to no avail: " <!-- <div><label for="state-list">{$LANG.address.state}</label><span><input type="text" name="state" id="state-list" class="textbox required" value="{$DATA.state}" /> *</span></div>" As mentioned above, I have tried to comment out on other of the files, and managed to remove the field, but then the form couldn´t be executed as it failed with the error 'address missing' although it actually was the state that was commented out, which leads to believe that the state field has hooks to some other functions, which I unfortunately are not able to find/change...
  14. BSmither, could you please have a look at topic 'Customize fields on order' created by me? I really need your qualified input to solve a problem...? Thanks.
  15. I really would appreciate if eg. bsmither would have a look at this topic and contribute with an idea to how I get rid of the 'county/state' box in the order form.....? Thanks
  • Create New...