MODx Parse Error on home page - parsing

I've been having this error over lot of modx evolution 1.0.5 installations (I allways use 1&1 servers, in Linux version) It fails to load the home page (not any other pages) it seems that every time I clean the cache, via the manager or via API code, it creates again this file in the cache:
docid_1.pageCache.php
But the thing is that even if the folder cache and all the files inside are set to 777 permissions when it creates files for caching they have any permission set and that's the thing causing this error.
Anybody has had this error? I've been searching in MODX forums but didn't find anybody worried about this, but still I can see it's something happening a lot since when I search on google this error, I don't find forum posts discussing this but instead lots of modx frontend pages showing this error at their home pages.
Maybe it's a problem with 1&1 PHP configuration.
I'm really worried about this cose it has happen some times when I client calls me "über mad" complaining about his home page showing this error.
I've seen that new 1.06 version has some fix on the pagecache parser but I don't know if it's related to my problem.
Here's the error page:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the
requested resource: « PHP Parse Error »
PHP error debug Error: file(assets/cache/docid_1.pageCache.php) [function.file]: failed to open stream: Permission denied
Error type/ Nr.: Warning - 2
File: /homepages/3/d405318697/htdocs/t3st/manager/includes/document.parser.class.inc.php
Line: 413
Line 413 source: $flContent= implode("", file($cacheFile));

The cheeky answer? - "upgrade" Evolution is dead.
A more helpful answer, check the modx system settings, in Revolution you can tell modx what permissions to attempt to set on files, my guess is that maybe you have inadvertently set these to 000 if that's what you mean by this: "they have any permission set"
If that does not work/you get desperate, disable all caching and test or if possible [still not familiar with evo] set that resource to not be cached.
Though something odd is going on, please confirm; the index page will be cached but with no permissions i.e. 000, subsequent pages will be cached but do have correct permissions set? i.e. 666 [or 644/whatever]

Related

Kentico MVC - PageBuilder Error on external Staging site

Am using Kentico MVC v12 Service Pack.
Have enabled Preview feature and PageBuilder in Application_Start.
When running from localhost, can successfully edit relevant pages using PageBuilder as required.
However, when ran from a staging site, which is a clone of the localhost version, I am getting an error in the Site settings when I try to add a Presentation Url (I am definitely adding in a valid format with the starting "https://" included), which is required for the PageBuilder to be used in the Pages application, where I see this error:
An unexpected error occurred, see event log for more details. Event source: PageEdit, Event code PreviewLinkGeneration
Any assistance would be much appreciated.
Thanks.
Sites error
That error is basically only looking at the string of the URL (almost like a simple validation). Are you sure there is no whitespace before the value you entered in? I can re-create your issue if I type in a space character before the URL.
You can also try clearing the field and saving the form. Then re-enter a value.
If it is still not working, try re-signing all your macros in the system as I have seen the regular expression validation rules have issues if macros aren't working. Which is really what this check is:

For how long will a browser remember to look for serviceworker.js?

Long story short: I have a website that used to have a service worker. I removed it. All is working well. Fine.
However, checking nginx error logs I can see how many returning visitors' browsers are checking for serviceworker.js file (probably trying to refresh the file). Since the file is no more, this makes a line in the error log saying how the resource serviceworker.js was not found.
So, is this a problem? How long will their browsers do this?
Can I "tell" any visiting browser that serviceworker.js is no more so purge any old references you have that make your browser shoot the question.

Umbraco Server Error: Contact Administrator see log for full details. Logs telling 404 error

I am going to use my Umbraco after a long time but I am unable to edit or post new thing. After Publish Changes it Displays the following error but the website is working perfectly in localhost.
That error looks like a permissions issue maybe? Are the permissions set correctly on the folders for the site?

Parse error: syntax error, unexpected end of file, unable to access admin console

I have what I perceive to be an unusual "syntax" error (at least to my very rookie junior dev self it is unusual)
I have a WP website that was originally built and designed by a friend, who wanted me to help. After logging on and attempting to upload a new theme to the website, legendsofthestands.com, I received the following error message:
Parse error: syntax error, unexpected end of file in
/home/kcsuperf/public_html/legendsofthestands.com/wp-content/themes/zerif-lite/functions.php
on line 1028
The problem isn't so much the error message, it is now that I'm not able to access the admin login page without seeing the same error. My understanding is that this is due to plugins that need to be deactivated so that I can access the /wp-admin page. However, when I try to access the admin console via FTP, I keep getting the 530 login failed error message.
I'm not sure which route to go at this point, whether I should try and contact the hosting company to resolve the logon issue, or if there is a way to fix the parse/syntax issue without having seen the code (since it is a WP-installed site).
Any assistance is appreciated.

When I turn on "hhvm" on Homestead, I don't get any syntax error or missing class error, just blank page

I am using homestead as my development environment, I turned on the hhvm option for the site
sites:
- map: homestead.app
to: /home/vagrant/Code/wheremyprojectis
hhvm: true
I found that when there is an exception, everything is fine, but If I forgot to use namespace, got syntax error in the blade templates, I got nothing, blank page. I go check the logs and still nothing, the debug option is true. It's quite frustrating until I turned off the hhvm option.
I know it is not a big deal, but I still want to know is there any way to fix this?
I experienced the same problem. I searched around and found that it seems to be intentional:
https://github.com/facebook/hhvm/issues/4818
https://github.com/facebook/hhvm/issues/2571
Now you can poke through the github issues mentioned above, as well as these stackoverflow questions:
Display fatal/notice errors in browser
hhvm-fastcgi + nginx how to make it display fatal errors in the browser
laravel 5 show blank page on server error (and no laravel log), running with hhvm and nginx
For the time being, it ultimately boils down to writing your own handler, which isn't too bad. You can also tail the errors at /var/log/hhvm/error.log. Any errors that you intentionally want going to the browser you could of course handle using Laravel's error handling and logging.
UPDATE:
I reported this issue(and a fix) to the Laravel github here:
https://github.com/laravel/framework/issues/8744

Resources