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

Weird error on one of my forums: #8

Open
dretax opened this issue Jul 17, 2018 · 12 comments
Open

Weird error on one of my forums: #8

dretax opened this issue Jul 17, 2018 · 12 comments

Comments

@dretax
Copy link

dretax commented Jul 17, 2018

public static $countFormat = '<' . 'a href="%2$s" class="count OverlayTrigger">%1$d</' . 'a>';

ErrorException: Fatal Error: syntax error, unexpected '.', expecting ',' or ';' - library/WidgetFramework/WidgetRenderer/UserFollow.php:5Generated By: DreTaX, 2 minutes ago

#0 [internal function]: XenForo_Application::handleFatalError() #1 {main}

array(3) { ["url"] => string(46) "https://xyz.com/admin.php?widgets/2/edit" ["_GET"] => array(1) { ["widgets/2/edit"] => string(0) "" } ["_POST"] => array(0) { } }

Happens when i want to view a widget in the admin panel, and I don't see anything just a white page.

@daohoangson
Copy link
Contributor

daohoangson commented Jul 17, 2018 via email

@dretax
Copy link
Author

dretax commented Jul 17, 2018

This server has:

PHP 7.2.7-1+ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jun 22 2018 09:13:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.7-1+ubuntu14.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

@daohoangson
Copy link
Contributor

That's weird...

This error just comes up randomly?

@dretax
Copy link
Author

dretax commented Jul 18, 2018

When i open a widget in the admin panel, but nothing comes up but a white page. Tried reinstalling too.

@daohoangson
Copy link
Contributor

I meant whether it worked before? Have it ever worked normally?

@dretax
Copy link
Author

dretax commented Jul 18, 2018

Yes. When I upgraded to 2.6.4 the issue appeared or so. uhhh

@daohoangson
Copy link
Contributor

Probably an issue with 2.6.4, let me check.

@daohoangson
Copy link
Contributor

I have tested with PHP 7.2.7 and it seems to be fine...

Can you add new widget?

@dretax
Copy link
Author

dretax commented Jul 22, 2018

Seems like i cant. sorry for the delay. I even tried reinstalling.

@daohoangson
Copy link
Contributor

So this error must be new because you must have been able to add new widget at some point in the past...

This is tricky. Consider changing the line like below and try again to test it:

public static $countFormat = '<a href="%2$s" class="count OverlayTrigger">%1$d</a>';

@dretax
Copy link
Author

dretax commented Jul 27, 2018

It works now. Dunno if i should try reinstalling php or whatsoever.

@daohoangson
Copy link
Contributor

Can you give me the full server spec? I will try to do a exact duplicate. Which server provider? From your previous comments, I assume you are running Ubuntu 14.04? Are you using it with Apache or NGINX? etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants