can't open debug file for writing Topic is solved

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
merkk
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jan 18, 2021 10:07 pm

can't open debug file for writing

Post by merkk » Mon Jan 18, 2021 10:26 pm

hi all,

Working with an 2.5.11 install - it's going to get upgraded to latest joomla version soon, but for now I need to get it working as is. This is on a windows 2016 server, running php 5.4.10, mysql 5.5.25a. This will all get upgraded, i'm just trying to get the existing site working before it's upgraded to all the latest versions.

This install of joomla is being moved from an old win 2008 server to a new server. The site is up and running on the new server, but when i try to log into the admin panel, it throws an error. It looks like there's 2 errors - the actual error, and then the inability to write the error to a log file. I believe I've given permission to write to the log file. The user the application pool is running under has full control and ownership of the directory the log files are in.

I used to be a developer, but primarily .Net. But I haven't really been doing that for the last several years, so pretty rusty. I'm guessing I missed something somewhere. Any suggestions? I've altered the file paths to hide some names, but they should be relatively correct.

Call stack
# Function Location
1 JAdministrator->dispatch() C:\domains\websites_\g\pt\administrator\index.php:46
2 JError::raiseError() C:\domains\websites_\g\pt\administrator\includes\application.php:164
3 JError::raise() C:\domains\websites_\g\pt\libraries\joomla\error\error.php:251

PHP Warning: fopen(C:\Domains\websites_\g\logs/plg_system_bfstop.log.php): failed to open stream: Permission denied in C:\domains\websites_\g\pt\libraries\joomla\log\loggers\formattedtext.php on line 248 PHP Warning: fputs() expects parameter 1 to be resource, boolean given in C:\domains\websites_\p\libraries\joomla\log\loggers\formattedtext.php on line 183

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24929
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: can't open debug file for writing

Post by pe7er » Tue Jan 19, 2021 8:24 am

Welcome to Joomla forum!

Could you disable the non-core plugin plg_system_bfstop.log.php and test again?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9638
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: can't open debug file for writing

Post by AMurray » Tue Jan 19, 2021 10:14 am

What PHP is running. J 2.5 won't run on anything more recent that PHP 5.6.x (certainly not PHP 7.x or 8.x).

When you get it running update to 2.5.28 (the final version from 8 years ago) Then start the migration to J3.x
Regards - A Murray
General Support Moderator

merkk
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Jan 18, 2021 10:07 pm

Re: can't open debug file for writing

Post by merkk » Fri Jan 22, 2021 4:30 am

Hello and thanks for the help. Not sure where plugins get initialized, so i just removed the bfstop folder for now, and i can log into the admin panel. So thank you for that suggestion. Since the error message it's throwing seems to be saying it can't open it's log file (plg_system_bfstop.log.php) my guess is it's a permission issue with IIS. I thought I had set the permissions correctly. I gave full control to the account that the app pool was running under. But apparently that wasn't good enough. I changed ownership of the folder to that account as well and now it seems to be working.

Thanks for pointing me in the right direction.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24929
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: can't open debug file for writing

Post by pe7er » Fri Jan 22, 2021 3:16 pm

Good to hear that you've solved it. Thanks for sharing your solution!
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com


Locked

Return to “General Questions/New to Joomla! 2.5”