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

JSON call failing in G5.2.9 intermittently - specifically on filepicker #1136

Closed
marktaylor46 opened this issue Feb 7, 2016 · 13 comments
Closed

Comments

@marktaylor46
Copy link

I have already mentioned this to both @w00fz and @mahagr

This issue seems to have been introduced with Gantry 5.2.9.

Please see screenshot.

When using the filepicker ytou intermittantly get a single line popup because the JSON call is failing. There is no error message to explain why this is the case though.

links to two member posts in RT forum:
http://www.rockettheme.com/forum/joomla-template-callisto/254840-blank-line-when-saving-or-opening-template-settings
http://www.rockettheme.com/forum/configuration-and-security/254828-user-interaction-impeded-or-delayed

2016-02-07_14-11-44

@marktaylor46
Copy link
Author

Note both member sites appear to be using PHP5.5.28 and OPCACHE.

@mahagr mahagr added this to the 5.3.0 milestone Feb 7, 2016
@mahagr
Copy link
Member

mahagr commented Feb 7, 2016

As the issue is random, though frequent, I suspect its PHP/opcache bug in 5.5.28. Any change to get users to temporary disable opcache in their sites to confirm if the issue gets fixed? If the issue is PHP bug, it will be really hard to track down and the easiest way to fix it would be to upgrade to PHP 5.6.

@marktaylor46
Copy link
Author

One member has now confirmed that disabling opcache does seem to resolve the issue. But shouldn't it work with opcache on? Is there anything else we can do?

@mahagr
Copy link
Member

mahagr commented Feb 8, 2016

Well, like all software PHP has bugs in it; there are literally hundreds of bugs fixed in PHP since 5.5. These compiler bugs are really hard to track down and even if we manage to fix them, they may come back later unless we fully understand which PHP bug causes the issues.

Easiest way to get rid of these kind of bugs is to upgrade PHP to the latest version; those usually get fixed sooner rather later.

I can take a look on this if I can easily reproduce it.

@mahagr
Copy link
Member

mahagr commented Feb 8, 2016

Whatever I try, I'm not able to reproduce the issue with PHP 5.5.28 and opcode extension.

@marktaylor46
Copy link
Author

Second member reports disabling opcache also fixed the issue for them too. Therefore, both member sites are now working. If we get any further reports of this I will let you know.

@mahagr
Copy link
Member

mahagr commented Feb 8, 2016

I would love to hear what happens if one of those users upgraded PHP and enabled opcode again.

@mahagr mahagr added invalid and removed bug labels Apr 1, 2016
@mahagr
Copy link
Member

mahagr commented Apr 1, 2016

I'm closing this issue as opcode bug which cannot be easily reproduced. If users have issues like this in the future, I'd like to have a look.

@mahagr mahagr closed this as completed Apr 1, 2016
@1webmaster4you
Copy link

I mahagr,

I have a lots of difficulty to EDIT Gantry modules in ADMIN.
I have to CLEAR Gantry cache before I could edit and even then, I need to refresh many time the page in CHROME before I have access to the editing.

_____Pre-Flight DEV : http://moisson.designserv.net/

Here's my server config :


CentOS
Apache 2.4.18
DirectAdmin 1.50.0
MySQL 5.5.47
Php 5.6.20


[/usr/local/lib/php.conf.d]
opcache.enable=1
opcache.revalidate_freq=0
opcache.validate_timestamps=0
opcache.max_accelerated_files=32531
opcache.memory_consumption=192
opcache.interned_strings_buffer=16
opcache.fast_shutdown=1
opcache.use_cwd=1
opcache.save_comments=1
opcache.enable_file_override=0


I need to resolve those Opcahe before I get 40,000 users at the same time…
There's no PHP errors in LOGS !

Alain

@mahagr
Copy link
Member

mahagr commented Apr 2, 2016

Reopening issue to allow further discussion. Can you turn opcache.validate_timestamps=1 and see what happens.

@mahagr mahagr reopened this Apr 2, 2016
@mahagr mahagr added bug and removed invalid labels Apr 2, 2016
@1webmaster4you
Copy link

OPCAHE Final Config, as propose by maharg :
(use opcache.revalidate_freq=0 or updates in joomla fail).

opcache.enable=1
opcache.revalidate_freq=0
opcache.validate_timestamps=1
opcache.max_accelerated_files=65407
opcache.memory_consumption=400
opcache.interned_strings_buffer=16
opcache.fast_shutdown=0
opcache.use_cwd=1
opcache.save_comments=1
opcache.enable_file_override=1
opcache.max_wasted_percentage=10
opcache.revalidate_path=1

Note : This get a super fast server and pages of any websites (Joomla - Wordpres) are render at least 200% faster !!! WOW !

Thank's

@mahagr
Copy link
Member

mahagr commented Apr 4, 2016

I'm going to have a look if I can fix opcode caching issues with our stored cache files. Because of that I will keep the issue open.

@mahagr mahagr added duplicate and removed bug labels Apr 4, 2016
@mahagr
Copy link
Member

mahagr commented Apr 4, 2016

Opened a new issue: #1222

@mahagr mahagr closed this as completed Apr 4, 2016
@mahagr mahagr modified the milestones: 5.3.0, 5.2.14 Apr 13, 2016
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

3 participants