Warning: error_log: failed to open stream: Permission denied - silverstripe

I've been working in Silverstripe 2.4.10. I'm still learning a lot about this content management system. I've been working on an update for the website and since I've put the update online I keep getting the error message in the admin panel of the CMS:
Warning: error_log(../mysite/logs/warning_log.txt) [function.error-log]:
failed to open stream: Permission denied in /home/www.mysite.com/web/sapphire/dev/LogFileWriter.php on line 57
I have already tried to restore the website to the original code, since I've backed up the old code, but the problem still occurs. I've been looking all over the internet and can't find the answer.

In silverstripe 2.4 the logging directory was setup with...
SS_Log::add_writer(new SS_LogFileWriter('/my/logfile/path'), SS_Log::ERR);
I can only guess that somehow that has been given the inappropriate path of mysite.
Searching for "SS_Log::add_writer" call or other log methods (see docs for 2.4) should help you find the code to fix it.

Related

Migrated Hybris storefront throws Server Error but log shows no error

I'm migrating from a Hybris 5.2 to Hybris 6.5, so far we managed to get rid of compilation errors and erros when running the server, but so far we have been unable to access the storefront.
When we try to access it we get a server error, but the log doesn't show anything that could give us a hint. Even the Chrome console doesn't show any errors.
I include the logs generated from the ant clean all and the hybris server startup in this link.
I have even debugged the home page controller, but no exceptions are being thrown, and my guesses are small since I have no feedback on the possible issue at hand.
What do we have to look at in these kind of situations? Is there a way to track the issue? Any tool in Hybris or an external one that could help me sniff the problem?
The issue was due to a missing configuration for JCO and SMTP, our client had a local.properties that had this configuration commented, after setting a configuration for these two the storefront was visible, still we don't understand how this missing configuration could not throw any error on console and we reached to this solution after a lot of trial and error.

resource cannot be found error when launching an asp application

So I am just in utter disgust at what happened. i was working on an asp.net in TFS application and all of the sudden it literally just stopped working. Every time I tried to launch it in a browser it would display this error:
The entire DESCRIPTION states:
Description: HTTP 404. The resource you are looking for (or one of its
dependencies) could have been removed, had its name changed, or is
temporarily unavailable. Please review the following URL and make
sure that it is spelled correctly
I haven't the slightest clue what happened. I have not to my best recollection done anything to jeopardize it.
This is what I've done. since I have two different logins to my computer, I took the solution and tried to launch it in my 2nd login and it worked perfectly. I took that same solution file and tried to launch it in my current login and it's causing this issue.
I reset all my Visual studio settings and tried to launch the solution and again - get the same error.
It is showing the SERVIER ERROR in /HOME.aspx - but this error does not show up in my other login.
Does anyone have any idea what could cause this? I'm basically looking at creating a new user profile for myself to get this resolved. Any help will be much appreciated.
Could it be my user profile or would simply re-installing VS could resolve it?

Installation Issue Error 500

I currently have DNN 7 installed and have been unable to get your module to work.
I do a typical module install of 2sic_2SexyContent_08.04.07_Install with apparently no issues.
When I drag the Content module to a pane there's an exception created in the log although the module does show up on the page.
I then click "Auto configure..." and then OK in the pop-up
It shows "installing Getting Started Templates" but then a pop-up shows error 500
The log shows:
"The given key was not present in the dictionary" and "Object reference not set to an instance of an object."
I checked github but couldn't find a resolution.
Is there an easy fix to this as I'd really like to get this installed. Heck, even if it's not easy, I still want to get it installed.
Thanks
Bob
I created a short video for you so you see what you should get: http://2sxc.org/en/blog/post/moving-discussions-from-codeplex-to-stack-overflow
Here another guess
make sure your domain-names/paths are correct in DNN - these are portal settings and if something is wrong there, you will probably get funny redirects
Also: pls post some screenshots etc. - because that will help to understand which part is generating a 500
Note that it's also possible that whatever caused the initial error, did something which is hard to fix for inexperience users. So just to start, it's probably best to first create a new DNN, install 2sxc and when that works, figure out what is different in the two installs.

Drupal - White Screen of Death after updates (and login page returning 403 error)

I have just updated a site that is using Drupal and have now experienced the horrible WSOD.
I have searched through Google looking for any sort of solution/error log to help me find and fix the issue but nothing has worked. I have tried adding in the 'display errors' code in the index.php file and looked at the error_log file in the public directory and nothing.
I can not login to the admin page and check any modules as the login page for this is returning a 403 error.
Any suggestions?
Please go to Apache Error log. You will exact error messages there.
The log file's location is different for different OS and versions.
e.g httpd/log/error.log
Maybe your Drupal registry is broken.
Fix this using the registry_rebuild script (this is no module!)
There are times in Drupal 7 when the registry gets hopelessly hosed and you need to rebuild the registry (a list of PHP classes and the files they go with). Sometimes, though, you can't do this regular cache-clear activity because some class is required when the system is trying to bootstrap.
You might get something like:
PHP Fatal error: Class 'EntityAPIControllerExportable' not found in ...sites/all/modules/rules/includes/rules.core.inc on line 11
If this happens when you're trying to run update.php, and happens when you're trying to clear your cache, well, you have some trouble. That's what Registry Rebuild is for.
It also may happen that you've moved some module that Drupal requires to bootstrap, and you get a horrible error. Registry Rebuild will also rebuild the system table to get the modules in the right place so you can bootstrap.
You will need PHP-CLI or drush to run this.
https://drupal.org/project/registry_rebuild

noob: Not able to checkout code using Bazaar explorer

So i started Bazaar explorer and set my local path to a project folder on desktop. I have an http URL in the format http://XXX.XXX.X.XX/trunk..I tried checking out the code by entering the URL in the Branch Source but I get an error saying "Connection error: while sending OPTIONS /trunk/: attempt failed as cannot connected party failed to respond or host failed to respond. Please help!
You're trying to checkout SVN repository most likely. Something wrong with access to that repository or with bzr-svn plugin. You have to file a bug here and ask your question, and you will have more chanches to get the right answer there than on StackOverflow..

Resources