Lioelx Posted March 18, 2017 Share Posted March 18, 2017 Hi all, I'm desperate. Multiple fails in my shop, login.php, create account, add to card in product info, contact us, login in admin, nothing works!!!It's like the data is not being sent. I have tried with php5.5-5.6-7, In subdomains with the same php version works everything is correct. I've looked all logs and none show any error. Oscommerce version edge.Web page nukua dot esthanks for your help.Lionel No external links here, thank you Link to comment Share on other sites More sharing options...
♥John W Posted March 18, 2017 Share Posted March 18, 2017 Did it work and then stop? Did you mess with sessions any kind of way? What did you change recently? If you didn't change anything, then compare your last working copy, which I hope you are making. Compare to your current site and look for something that affects all those pages like application_top, sessions, and the like. It's good practice to get familiar wiht a comparator like Beyond Compare. I can use that to compare to my live site if I need to and to upload. I'm not really a dog. Link to comment Share on other sites More sharing options...
Lioelx Posted March 18, 2017 Author Share Posted March 18, 2017 Hi @@John W, The first question is yes and the others no. I have not changed anything, been from one day to another. I have compared files and everything is the same ... Regards No external links here, thank you Link to comment Share on other sites More sharing options...
♥John W Posted March 18, 2017 Share Posted March 18, 2017 That seems strange. Something changed, so it's a question of what. I would test that exactly on my local test machine. If you can't do that then you should consider some of the paid help here. You don't want to lose sales. I'm not really a dog. Link to comment Share on other sites More sharing options...
Lioelx Posted March 19, 2017 Author Share Posted March 19, 2017 If I remember correctly, the only change was the update of paypal app to the latest version. No external links here, thank you Link to comment Share on other sites More sharing options...
♥John W Posted March 19, 2017 Share Posted March 19, 2017 If you can't figure out what has changed, becaue something must have changed or been added to break these functions. If I were you I would start turning off the features you added most recently especially with javascript and trying your cart. You have a lot of javascript in your page source and I can't get your search type ahead to work either. I'm not really a dog. Link to comment Share on other sites More sharing options...
Lioelx Posted March 19, 2017 Author Share Posted March 19, 2017 Thanks for looking, the problem is that I can not enter the admin to disable addons No external links here, thank you Link to comment Share on other sites More sharing options...
beerbee Posted March 20, 2017 Share Posted March 20, 2017 @@Lioelx Hi I just started to have the same behaviour on my playground shop, in my case it happend because of changes to .htaccess as discussed in http://www.oscommerce.com/forums/topic/410451-time-to-get-secure-if-you-havent-already/?p=1753627 At the moment I don't know why but I thought this might be a clue for you what it could be. Best regards Christoph Link to comment Share on other sites More sharing options...
burt Posted March 20, 2017 Share Posted March 20, 2017 Problems like this are almost always in one (or both) of these; htaccess, incorrect or malformed URL writing configure.php, incorrect or malformed paths If you cannot solve it, and your business depends on your shop...get it fixed by a Pro. Post at the Commercial Tickets area, instead of wasting so much time and desperation. Link to comment Share on other sites More sharing options...
beerbee Posted March 20, 2017 Share Posted March 20, 2017 Hi, yes shure Burt, you are right, in most cases there is something wrong with the things you mentioned, but sometimes its the provider, which comes to my mind. I had this years ago, don't even remember what it was about, but the reason why things stopped working was the provider (a big one) changing php settings, without giving notice. So another suggestion to @@Lioelx would be to ask his provider if there have been some changes he should know of. Best regards Christoph Link to comment Share on other sites More sharing options...
Lioelx Posted March 21, 2017 Author Share Posted March 21, 2017 Hello, I have a vps managed by me with the plesk panel and I have not changed anything. One day it worked and the next day it did not. The php version is 5.6.30. I have also compared all the files with the master and do not see changes.This is my htaccess Regards # Begin Ultimate SEO V2.2d Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] # RewriteBase instructions # Change RewriteBase dependent on how your shop is accessed as below. # http://www.nukua.es = RewriteBase / # http://nukua.es/tienda/ = RewriteBase /tienda/ # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/ # Change the following line using the instructions above RewriteBase / RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-pm-([0-9]+).html$ extra_info_pages.php?pages_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING} # End Ultimate SEO V2.2d # case: leading and trailing parameters RewriteCond %{QUERY_STRING} ^(.+)&osCsid=[0-9a-z]+&(.+)$ [NC] RewriteRule (.*) $1?%1&%2 [R=301,L] # # case: leading-only, trailing-only or no additional parameters RewriteCond %{QUERY_STRING} ^(.+)&osCsid=[0-9a-z]+$|^osCsid=[0-9a-z]+&?(.*)$ [NC] RewriteRule (.*) $1?%1 [R=301,L] # case: language parameters RewriteCond %{QUERY_STRING} ^(.+)?language=es(.*)$ [NC] RewriteRule (.*) $1?%1 [R=301,L] # anti xss script 1 - pci compliance - by pixclinic Options +FollowSymLinks RewriteEngine On RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} (\<|%3C).*iframe.*(\>|%3E) [NC,OR] RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) RewriteRule ^(.*)$ index_error.php [F,L] RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] # extra anti uri and xss attack script 2 - sql injection prevention Options +FollowSymLinks RewriteEngine On RewriteCond %{QUERY_STRING} ("|%22).*(>|%3E|<|%3C).* [NC] RewriteRule ^(.*)$ log.php [NC] RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC] RewriteRule ^(.*)$ log.php [NC] RewriteCond %{QUERY_STRING} (javascript:).*(;).* [NC] RewriteRule ^(.*)$ log.php [NC] RewriteCond %{QUERY_STRING} (;|'|"|%22).*(union|select|insert|drop|update|md5|benchmark|or|and|if).* [NC] RewriteRule ^(.*)$ log.php [NC] RewriteRule (,|;|<|>|'|`) /log.php [NC] # Begin Google Base File Rewrite Code RewriteRule FEED.txt googlebase.php # End Google Base File Rewrite Code <IfModule mod_expires.c> ExpiresActive on # Perhaps better to whitelist expires rules? Perhaps. ExpiresDefault "access plus 1 month" # cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5) ExpiresByType text/cache-manifest "access plus 0 seconds" # Your document html ExpiresByType text/html "access plus 0 seconds" # Data ExpiresByType text/xml "access plus 0 seconds" ExpiresByType application/xml "access plus 0 seconds" ExpiresByType application/json "access plus 0 seconds" # RSS feed ExpiresByType application/rss+xml "access plus 1 hour" # Favicon (cannot be renamed) ExpiresByType image/x-icon "access plus 1 week" # Media: images, video, audio ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType video/ogg "access plus 1 month" ExpiresByType audio/ogg "access plus 1 month" ExpiresByType video/mp4 "access plus 1 month" ExpiresByType video/webm "access plus 1 month" # HTC files (css3pie) ExpiresByType text/x-component "access plus 1 month" # Webfonts ExpiresByType font/truetype "access plus 1 month" ExpiresByType font/opentype "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" ExpiresByType application/vnd.ms-fontobject "access plus 1 month" # CSS and JavaScript ExpiresByType text/css "access plus 1 year" ExpiresByType application/javascript "access plus 1 year" ExpiresByType text/javascript "access plus 1 year" <IfModule mod_headers.c> Header append Cache-Control "public" <FilesMatch “\.(js|css|xml|gz|html)$”> Header append Vary: Accept-Encoding </FilesMatch> </IfModule> </IfModule> No external links here, thank you Link to comment Share on other sites More sharing options...
beerbee Posted March 21, 2017 Share Posted March 21, 2017 Hi this is all what my provider suggests for forcing ssl: RewriteCond %{SERVER_PORT} !=443 RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L] instead of RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] got me rid of the problem. Should be no big deal to try it - if your ssl port is different than 443 it should be changed accordingly. Best regards Christoph Link to comment Share on other sites More sharing options...
Lioelx Posted March 21, 2017 Author Share Posted March 21, 2017 Hi, the result is the same. How can I uninstall addons if I can not log in to the admin? No external links here, thank you Link to comment Share on other sites More sharing options...
beerbee Posted March 21, 2017 Share Posted March 21, 2017 Might be a dumb question: have you emptied your browsers cache or tried from a different browser after changing force ssl? Regarding admin after making a db backup you could try via phpmyadmin to deactivate what's controlled by configuration table but that is really risky. Have you tried what happens without forcing ssl? Best regards Christoph Link to comment Share on other sites More sharing options...
frankl Posted March 21, 2017 Share Posted March 21, 2017 @@Lioelx I would rename the htaccess file (effectively disabling it) to see if that makes a difference. osCommerce user since 2003! Link to comment Share on other sites More sharing options...
Lioelx Posted March 21, 2017 Author Share Posted March 21, 2017 Hi, yes, I've cleared the cache and tried with different browsers, even from the samrtphone. I have also disabled ssl and it does not work either. Regards PD the web page is nukua (dot) es If you want to look at it No external links here, thank you Link to comment Share on other sites More sharing options...
Lioelx Posted March 21, 2017 Author Share Posted March 21, 2017 @ frankl It also does nothing to remove the htaccess No external links here, thank you Link to comment Share on other sites More sharing options...
beerbee Posted March 21, 2017 Share Posted March 21, 2017 Sorry, I'm out of clues right now, I tried using your contact form it returns empty and with contact_us.php?action=send. There might be a chance that there is a record in the action recorder in admin, as you are not able to get into admin you could look via phpmyadmin if there are records with success 0 and if you store sessions in the db you could look there also if sessions are created at all. Best regards Christoph Link to comment Share on other sites More sharing options...
Lioelx Posted March 22, 2017 Author Share Posted March 22, 2017 Hello, sessions are recorded well, but action recorder does not collect data No external links here, thank you Link to comment Share on other sites More sharing options...
frankl Posted March 22, 2017 Share Posted March 22, 2017 @@Lioelx Can you look at your php error log? osCommerce user since 2003! Link to comment Share on other sites More sharing options...
Lioelx Posted March 22, 2017 Author Share Posted March 22, 2017 @@Lioelx Can you look at your php error log? Hi, yes. I have activated E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED but dont show eny error. There are also no errors in apache, mysql, nginx, etc. No external links here, thank you Link to comment Share on other sites More sharing options...
Dan Cole Posted March 22, 2017 Share Posted March 22, 2017 @@Lioelx Lionel....Gary pointed out that it was likely an htaccess or configuration issue and that makes sense considering you have indicated that things worked okay when located in a sub directory. I see that you ruled out a problem with the htaccess file by disabling or renaming it but I don't see any mention of the possibility that it is a configuration issue....have you compared the current configuration files with the ones that are working in the sub directories? The other thing you might do is to call your host and see if they can spot the problem....I don't know how responsive your host is but I know that mine would be more than happy to have a look for me. If these things don't allow you to sort it out, Gary's other suggestion about posting in the commercial forums is a good one too. Dan Need help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC community version (CE Phoenix) here. Link to comment Share on other sites More sharing options...
♥John W Posted March 22, 2017 Share Posted March 22, 2017 Make sure your cookie path is correct. Also, your error statement is very restrictive and you are not getting notice level errors, which could prove helpful. I'm not really a dog. Link to comment Share on other sites More sharing options...
Lioelx Posted March 22, 2017 Author Share Posted March 22, 2017 Hello, the technical department of my hosting takes 2 days trying to locate the problem without success. They do not see any fault.These are my configure, The settings are the same as always: Admin: <?php define('HTTP_SERVER', 'https://nukua.es'); define('HTTPS_SERVER', 'https://nukua.es'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'nukua.es'); define('HTTPS_COOKIE_DOMAIN', 'nukua.es'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('HTTP_CATALOG_SERVER', 'https://nukua.es'); define('HTTPS_CATALOG_SERVER', 'https://nukua.es'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/httpdocs/'); define('DIR_WS_ADMIN', '/adminsidefolder/'); define('DIR_WS_HTTPS_ADMIN', '/adminsidefolder/'); define('DIR_FS_ADMIN', '/var/www/vhosts/httpdocs/adminsidefolder/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_FS_CATALOG', '/var/www/vhosts/httpdocs/'); 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/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'user'); define('DB_SERVER_PASSWORD', 'pass'); define('DB_DATABASE', 'BDtable'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); define('CFG_TIME_ZONE', 'Europe/Madrid'); ?> Catalog side: <?php define('HTTP_SERVER', 'https://nukua.es'); define('HTTPS_SERVER', 'https://nukua.es'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'nukua.es'); define('HTTPS_COOKIE_DOMAIN', 'nukua.es'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/var/www/vhosts/httpdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'user'); define('DB_SERVER_PASSWORD', 'pass'); define('DB_DATABASE', 'BDtable'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); define('CFG_TIME_ZONE', 'Europe/Madrid'); ?> No external links here, thank you Link to comment Share on other sites More sharing options...
♥John W Posted March 22, 2017 Share Posted March 22, 2017 I see one problem right off the bat. You are forcing to www.nukua.es but your config is for https://nukua.es/ (without the WWW). Your certificate is for nukua.es without the www. I think you should do everthing as your certificate, so take out forcing the www in your htaccess. Can we try that? I'm not really a dog. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.