Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does whoops have compatible issue with PHP7? #1994

Closed
newjie opened this issue May 15, 2017 · 4 comments
Closed

Does whoops have compatible issue with PHP7? #1994

newjie opened this issue May 15, 2017 · 4 comments

Comments

@newjie
Copy link

newjie commented May 15, 2017

Live page:

  1. http://wm.weiwei-tv.com/index.php/weiwei-videos/weiwei-show/242-2017-05-13-02-59-22
  2. http://www.weiwei-tv.com/index.php/weiwei-videos/weiwei-show/242-2017-05-13-02-59-22

These are two mirroring pages, the first one is running on PHP7.0, the second one php5.5.9. Although the pages are identical, only 2nd one is working, and the 1st one is getting this issue:

Uncaught TypeError: Argument 1 passed to Gantry\Component\Whoops\Run::handleException() must be an instance of Exception, instance of Error given in /home/wm/public_html/libraries/gantry5/classes/Gantry/Component/Whoops/Run.php:75 Stack trace: #0 [internal function]: Gantry\Component\Whoops\Run->handleException(Object(Error)) #1 {main} thrown

and I was able to find this filp/whoops#341. Although not quite understand what it is saying, it seems to me whoops has some issue with PHP7.0. Is this the cause of the problem? And how do I fix it?

@mahagr
Copy link
Member

mahagr commented May 15, 2017

Looks like there's a configuration issue on the first site:

http://wm.weiwei-tv.com/index.php/

@newjie
Copy link
Author

newjie commented May 15, 2017

Yes. Unfortunately I was trying to install PHP5.6 and it causes some problem. But now it is fixed. The website is working under PHP5.6 now. Currently, whoops works fine: instead of displaying the gantry error page showing the error I mentioned before, now the first link only gives a 500 error. I think this confirms my guess that the previous problem was caused by PHP version.

Regarding the 500 error, which I think it has always been there, being covered by the whoop's error before I installed php5.6, it is:

Call to undefined function mb_internal_encoding() in /home/wm/public_html/components/com_k2/helpers/route.php on line 86, referer: http://www.weiwei-tv.com/

this doesn't happen on the 2nd link, any idea what causes it?

@mahagr
Copy link
Member

mahagr commented May 16, 2017

The above error doesn't come from gantry but from K2 -- you need to install MB String extension to your PHP.

@mahagr
Copy link
Member

mahagr commented May 16, 2017

In regards to your first error in PHP 7.0, you're using very old version of Gantry 5 (the file in the error message hasn't existed for a long time). Just update and you should be fine.

@mahagr mahagr added the invalid label Jun 1, 2017
@mahagr mahagr added this to the 5.4.13 milestone Jun 1, 2017
@mahagr mahagr closed this as completed Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants