English
Overslaan naar inhoud
Nederlands - Nederland
  • Er zijn geen suggesties want het zoekveld is leeg.

display errors: css / js not loaded

On the specsavers-customers.acousoftonline.com the pages are displayed, but no css or js is loaded.  Looking in the dev tools network tab, I see a lot of 'blocked:mixed-content' errors while loading the css and js files. With that some js errors. 
After updating both of the specsavers-customer servers, it seems that AppServiceProvider.php file is overwritten, which has some custom modifications. (\var\www\specsavers-customers\app\Providers\AppServiceProvider.php)

investigating the file, it seems     \URL::forceScheme('https');  does the trick. Needs to be solved on a more elegant way in the future.  Also some changes in the two 'preg_match regular expressions, but it seems that this has nothing to do with the error. 
  1.             return preg_match('/^[\p{L}À-ža-zA-Z0-9_+-_ ]*$/', $value); //matches 0-9, a-z- A-Z, dashes and spaces, special letters in the alphabet like é
  2.         });
  3.         Validator::extend('custom_string', function ($attribute, $value) {
  4.             return preg_match("/^[\p{L}\wÀ-ž_.!`':\", ?+@#$%&|*€()\/\\-]+$/", $value); //matches 0-9, a-z- A-Z, dashes and spaces, special letters in the alphabet like é.
  5.             // Make sure this does the same as the partials..
  6.         });
  7.         Validator::extend('aftertoday', function ($attribute, $value) {
  8.             $testdata = new Carbon($value);
  9.             return $testdata > Carbon::today();
  10.         });
  11.         Validator::extend('beforetoday', function ($attribute, $value) {
  12.             $testdata = new Carbon($value);
  13.             return $testdata < Carbon::today();
  14.         });

  15.         \URL::forceScheme('https');