Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Blank Screen (500) When Trying To Activate Cdn [Tested On Cscart & Mv] Rate Topic   - - - - -

 
  • mesut
  • Newbie
  • Trial users
  • Join Date: 02-Dec 15
  • 7 posts

Posted 02 December 2015 - 09:02 PM #1

Hello, I have been facing a problem about CDN.

 

I am using Cloudfront on several systems already, so I have knowledge about settings.

 

The problem is,

 

When I enter Key and Secret key in CDN Settings page and click save, it redirects me to blank page (Code:500).

 

I have tried on MultiVendor Trial, CSCart Ultimate Trial, and CsCart Free the result are the same. (4.3.4)

 

Tested on: WAMP, XAMPP and even IIS 8.5 but the result are the same.

 

The only thing I edited is the followin code in .htaccess (web.conf version in IIS). I don't think it causes the problem.

    # Compress HTML, CSS, JavaScript, Text, XML, fonts
    AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/javascript application/json
    AddOutputFilterByType DEFLATE application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf font/opentype font/otf font/ttf application/x-woff application/x-font-woff
    AddOutputFilterByType DEFLATE text/css text/html text/plain

Could you please guide me what could be the problem?

 

Thanks in advance!

 

Please see the screenshoots for details.

Attached Thumbnails

  • 1.PNG
  • 2.PNG
  • 3.PNG


 
  • CS-Cart team
  • CS-Cart support team
  • Moderators
  • Join Date: 04-Apr 11
  • 3810 posts

Posted 03 December 2015 - 06:49 AM #2

Hello, I have been facing a problem about CDN.

 

I am using Cloudfront on several systems already, so I have knowledge about settings.

 

The problem is,

 

When I enter Key and Secret key in CDN Settings page and click save, it redirects me to blank page (Code:500).

 

I have tried on MultiVendor Trial, CSCart Ultimate Trial, and CsCart Free the result are the same. (4.3.4)

 

Tested on: WAMP, XAMPP and even IIS 8.5 but the result are the same.

 

The only thing I edited is the followin code in .htaccess (web.conf version in IIS). I don't think it causes the problem.

    # Compress HTML, CSS, JavaScript, Text, XML, fonts
    AddOutputFilterByType DEFLATE application/javascript application/x-javascript text/javascript application/json
    AddOutputFilterByType DEFLATE application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf font/opentype font/otf font/ttf application/x-woff application/x-font-woff
    AddOutputFilterByType DEFLATE text/css text/html text/plain

Could you please guide me what could be the problem?

 

Thanks in advance!

 

Please see the screenshoots for details.

 

Reproduce the issue several times, check the server error logs and post the error records here so we could help you.


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • mesut
  • Newbie
  • Trial users
  • Join Date: 02-Dec 15
  • 7 posts

Posted 03 December 2015 - 07:43 AM #3

Hello,

 

Apache Log seems fine, but I caught this on PHP Error log, but I am getting the same error on live server for some reason.

 

PHP Log

[03-Dec-2015 11:13:07 Europe/Moscow] PHP Fatal error:  Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #191; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\wamp\www\mv434\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php:843
Stack trace:
#0 C:\wamp\www\mv434\app\lib\other\amazon_sdk\services\cloudfront.class.php(256): RequestCore->send_request()
#1 C:\wamp\www\mv434\app\lib\other\amazon_sdk\services\cloudfront.class.php(903): AmazonCloudFront->authenticate('POST', Array)
#2 C:\wamp\www\mv434\app\Tygh\Backend\Cdn\Cloudfront.php(43): AmazonCloudFront->create_distribution('http://localhos...', 'TYGHCDN-localho...', Array)
#3 C:\wamp\www\mv434\app\controllers\backend\storage.php(79): Tygh\Backend\Cdn\Cloudfront->createDistribution('localhost', Array)
#4 C:\wamp\www\mv434\app\functions\fn.control.php(680): include('C:\\wamp\\www\\mv4...')
#5 C:\wamp\www\mv434\app\functions\fn.contro in C:\wamp\www\mv434\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php on line 843


 
  • mesut
  • Newbie
  • Trial users
  • Join Date: 02-Dec 15
  • 7 posts

Posted 03 December 2015 - 08:20 AM #4

Also this is the error log from live server running under IIS 8.5 on W2012 Cluster

[03-Dec-2015 12:11:05 Europe/Moscow] PHP Fatal error:  Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #25; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php:843
Stack trace:
#0 C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\services\cloudfront.class.php(256): RequestCore->send_request()
#1 C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\services\cloudfront.class.php(903): AmazonCloudFront->authenticate('POST', Array)
#2 C:\inetpub\wwwroot\mv_temp\app\Tygh\Backend\Cdn\Cloudfront.php(43): AmazonCloudFront->create_distribution('http://www.ald...', 'TYGHCDN-www.ald...', Array)
#3 C:\inetpub\wwwroot\mv_temp\app\controllers\backend\storage.php(79): Tygh\Backend\Cdn\Cloudfront->createDistribution('www.ald...', Array)
#4 C:\inetpub\wwwroot\mv_temp\app\functions\fn.control.php(680): include('C:\ine in C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php on line 843


 
  • CS-Cart team
  • CS-Cart support team
  • Moderators
  • Join Date: 04-Apr 11
  • 3810 posts

Posted 03 December 2015 - 01:29 PM #5

 

Hello,

 

Apache Log seems fine, but I caught this on PHP Error log, but I am getting the same error on live server for some reason.

 

PHP Log

[03-Dec-2015 11:13:07 Europe/Moscow] PHP Fatal error:  Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #191; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\wamp\www\mv434\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php:843
Stack trace:
#0 C:\wamp\www\mv434\app\lib\other\amazon_sdk\services\cloudfront.class.php(256): RequestCore->send_request()
#1 C:\wamp\www\mv434\app\lib\other\amazon_sdk\services\cloudfront.class.php(903): AmazonCloudFront->authenticate('POST', Array)
#2 C:\wamp\www\mv434\app\Tygh\Backend\Cdn\Cloudfront.php(43): AmazonCloudFront->create_distribution('http://localhos...', 'TYGHCDN-localho...', Array)
#3 C:\wamp\www\mv434\app\controllers\backend\storage.php(79): Tygh\Backend\Cdn\Cloudfront->createDistribution('localhost', Array)
#4 C:\wamp\www\mv434\app\functions\fn.control.php(680): include('C:\\wamp\\www\\mv4...')
#5 C:\wamp\www\mv434\app\functions\fn.contro in C:\wamp\www\mv434\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php on line 843

 

 

 

Also this is the error log from live server running under IIS 8.5 on W2012 Cluster

[03-Dec-2015 12:11:05 Europe/Moscow] PHP Fatal error:  Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #25; cURL error: SSL certificate problem: unable to get local issuer certificate (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php:843
Stack trace:
#0 C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\services\cloudfront.class.php(256): RequestCore->send_request()
#1 C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\services\cloudfront.class.php(903): AmazonCloudFront->authenticate('POST', Array)
#2 C:\inetpub\wwwroot\mv_temp\app\Tygh\Backend\Cdn\Cloudfront.php(43): AmazonCloudFront->create_distribution('http://www.ald...', 'TYGHCDN-www.ald...', Array)
#3 C:\inetpub\wwwroot\mv_temp\app\controllers\backend\storage.php(79): Tygh\Backend\Cdn\Cloudfront->createDistribution('www.ald...', Array)
#4 C:\inetpub\wwwroot\mv_temp\app\functions\fn.control.php(680): include('C:\ine in C:\inetpub\wwwroot\mv_temp\app\lib\other\amazon_sdk\lib\requestcore\requestcore.class.php on line 843

 

It is a server side issue, please contact your server administrators regarding it. The following articles may be useful for them:

 

http://www.info.tera...ONS.108.34.html

 

http://serverfault.c...uer-certificate

 

http://stackoverflow...tificate-debian


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • mesut
  • Newbie
  • Trial users
  • Join Date: 02-Dec 15
  • 7 posts

Posted 03 December 2015 - 02:42 PM #6

It is a server side issue, please contact your server administrators regarding it. The following articles may be useful for them:

 

http://www.info.tera...ONS.108.34.html

 

http://serverfault.c...uer-certificate

 

http://stackoverflow...tificate-debian

 

Thank you for answer.

 

I own the servers. I've managed to get it work on my local (both in XAMPP and WAMPP).

 

If you are testing/developing it on local using Windows with any web development environment, and having this problem, the solution is below;

 

1-) Download http://curl.haxx.se/ca/cacert.pemand save it in your environment (ie. C:\wamp\bin\php\php5.5.12)

2-) Add/activate (by removing the starting  ';')

curl.cainfo = "C:\wamp\bin\php\php5.5.12\cacert.pem"
openssl.cafile="C:\wamp\bin\php\php5.5.12\ca-bundle.crt"

3-) Restart whatever you use

 

But I have no idea how to fix it under IIS 8.5, any tips?

 

Thanks in advance.



 
  • mesut
  • Newbie
  • Trial users
  • Join Date: 02-Dec 15
  • 7 posts

Posted 03 December 2015 - 02:44 PM #7

Thank you for answer.

 

I own the servers. I've managed to get it work on my local (both in XAMPP and WAMPP).

 

If you are testing/developing it on local using Windows with any web development environment, and having this problem, the solution is below;

 

1-) Download http://curl.haxx.se/ca/cacert.pemand save it in your environment (ie. C:\wamp\bin\php\php5.5.12)

2-) Add/activate (by removing the starting  ';')

curl.cainfo = "C:\wamp\bin\php\php5.5.12\cacert.pem"
openssl.cafile="C:\wamp\bin\php\php5.5.12\ca-bundle.crt"

3-) Restart whatever you use

 

But I have no idea how to fix it under IIS 8.5, any tips?

 

Thanks in advance.

 

**Edit, I am using https://github.com/b...9/ca-bundle.crtfor ca-bunlde.crt