Advertisement:

Author Topic: problem with mcfly theme causing 500 Internal Server Error  (Read 1135 times)

xop32

  • Jr. Member
  • **
  • Posts: 77
  • trend following
problem with mcfly theme causing 500 Internal Server Error
« on: August 23, 2016, 04:22:55 am »
I have just uploaded the mcfly theme from the market and  as soon as I activate it it causes a 500 error both on the home page and on all the theme setting

on a localhost env its just dies

I am not sure whats causing it but the same problem on both a live website and on testing in local enivorment

does anyone else have the same problem??


errors on localhost on activating theme


Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 17 in C:\xampp-new\htdocs\osclass.3.6.1\oc-content\themes\mcfly\vendor\composer_components\madhouse\themekitchen\classes\Madhouse\ThemeKitchen\Package.php on line 343

Warning: preg_replace(): Compilation failed: unmatched parentheses at offset 17 in C:\xampp-new\htdocs\osclass.3.6.1\oc-content\themes\mcfly\vendor\composer_components\madhouse\themekitchen\classes\Madhouse\ThemeKitchen\Package.php on line 343

etc etc x 12

Warning: file_get_contents(C:/xampp-new/htdocs/osclass.3.6.1/\\assets/model/configuration.json): failed to open stream: No such file or directory in C:\xampp-new\htdocs\osclass.3.6.1\oc-content\themes\mcfly\vendor\composer_components\madhouse\themekitchen\classes\Madhouse\ThemeKitchen\Package.php on line 33

etc etc

« Last Edit: August 23, 2016, 04:35:57 am by xop32 »

xop32

  • Jr. Member
  • **
  • Posts: 77
  • trend following
Re: problem with mcfly theme causing 500 Internal Server Error
« Reply #1 on: August 23, 2016, 04:34:34 am »
quick look on google and looks like  a problem with preg replace throwing up some errors

mcfly\vendor\composer_components\madhouse\themekitchen\classes\Madhouse\ThemeKitchen\Package.php
lines 338-343

Code: [Select]
// Compute the relative path to themekitchen.
        $relativePath = preg_replace(
            '#^.*' . DIRECTORY_SEPARATOR . '(oc-content.*)' . DIRECTORY_SEPARATOR . '?$#',
            '$1',
            dirname(dirname(dirname(dirname(__FILE__))))
        );
« Last Edit: August 23, 2016, 04:37:36 am by xop32 »

Param

  • Newbie
  • *
  • Posts: 2
Re: problem with mcfly theme causing 500 Internal Server Error
« Reply #2 on: August 24, 2016, 09:46:58 am »
I have recently purchased the mcfly theme. I got the same issue when activating the theme.

I changed the PHP version 5.4.16 to 5.6.24

It worked fine after that without any issue.

xop32

  • Jr. Member
  • **
  • Posts: 77
  • trend following
Re: problem with mcfly theme causing 500 Internal Server Error
« Reply #3 on: August 25, 2016, 12:06:39 am »
my xampp install on my localhost is over a year old now and my server has not been updated in a wile so I will update php 

thanks for pointing me in the right direction

Groomain

  • Newbie
  • *
  • Posts: 22
Re: problem with mcfly theme causing 500 Internal Server Error
« Reply #4 on: September 14, 2016, 01:21:22 pm »
Hi,

Sorry for the inconvenience.

Please send us a message on the market if you have more problem with our them.

Have a good day!