Problem with custom_strings_inc.php

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
douglasw7
Posts: 7
Joined: 03 Dec 2009, 15:56

Problem with custom_strings_inc.php

Post by douglasw7 »

I have been trying to implement a couple of custom statuses. I have most of it working, but I need to specify the bug_title and bug_button strings in custom_strings_inc.php. However, whenever I place a file (even a file with nothing but comment statements) into the main mantis directory, then I get an error for any page that I try to load. The error says, "SYSTEM WARNING: require(/Library/WebServer/Documents/mantis/custom_strings_inc.php) [function.require]: failed to open stream: Permission denied". I don't think it's really a permissions problem, as I have no problem with other custom files such as custom_functions_inc.php that are in the same directory.

Any ideas about what I'm doing wrong?
Mantis: 1.1.8
PHP: 5.2.4
SQL: MySQL 5.0.45
OS: XP SP3
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with custom_strings_inc.php

Post by atrol »

What is happening when you copy for example temporarely custom_functions_inc.php to custom_strings_inc.php
Do you get the same message or another one?
Please use Search before posting and read the Manual
douglasw7
Posts: 7
Joined: 03 Dec 2009, 15:56

Re: Problem with custom_strings_inc.php

Post by douglasw7 »

I made a copy of custom_functions_inc.php and named it custom_strings_inc.php and tried it. I got exactly the same error message as before.
Mantis: 1.1.8
PHP: 5.2.4
SQL: MySQL 5.0.45
OS: XP SP3
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Problem with custom_strings_inc.php

Post by atrol »

maybe you should update to a newer PHP version (5.2.x not 5.3.x)
Please use Search before posting and read the Manual
douglasw7
Posts: 7
Joined: 03 Dec 2009, 15:56

Re: Problem with custom_strings_inc.php

Post by douglasw7 »

Found the problem. It was indeed a permissions problem. It turns out that custom_functions_inc.php and custom_constants_inc.php were originally created directly on the server, which automatically set the permissions appropriately. As we have uploaded modified versions of those files, they were inheriting the permissions from the old versions they were overwriting. With custom_strings_inc.php, the file was created locally and uploaded, and thus did not have the same permissions that the other custom files had. What was confusing was the fact that we have been using the same upload method for a while now, and so it seemed that we were using the same method to upload the problem file. We forgot that the original versions of some files had been placed on the server in a different manner, leaving the legacy permissions.

By the way, we have also updated the php version, though that had no bearing on this issue.

Thanks for helping a noob.
Mantis: 1.1.8
PHP: 5.2.4
SQL: MySQL 5.0.45
OS: XP SP3
Post Reply