Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Issues when using with media

UserPost

10:07 pm
December 24, 2008


BillCKing

Member

posts 3

1

I installed the RC6 version and on default, when I try to upload an image onto the server, the image will not show up in the preview or the post. When I try to access the link, the server responds:

"Fatal error: Call to undefined function: apache_request_headers() in /home/******/public_html/*******/wp-content/plugins/role-scoper/lib/agapetry_lib.php on line128″

I don't know what is going on here. It would be excellent if you could tell me if I did something wrong, or you could improve and fix this problem.

Thank you very much.

Bill

1:51 pm
December 26, 2008


Kevin

Admin

posts 2402

2

The problem is that I assumed any web server which WordPress identified as apache would support the apache_request_headers function. Since Role Scoper’s usage of the that function is non-essential, you can correct the problem by modifying plugins/role-scoper/lib/agapetry_lib.php as follows:

change:

if ( $is_apache ) {

to:

if ( $is_apache && function_exists('apache_request_headers') ) {

Thanks for the report.

11:37 am
December 27, 2008


BillCKing

Member

posts 3

3

I will try as soon as possible and report back.


Thank you very much.


Merry Christmas and Happy New Year!

12:49 am
December 28, 2008


BillCKing

Member

posts 3

4

It worked correctly. Thank you for the fix. I will continue report any problem I might have in the future.


About the Agapetry forum

Currently Online:

13 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1186

Posts: 5409

Members:

There are 1176 members

There are 1 guests


Kevin has made 2402 posts

Top Posters:

metal450 - 159

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin