Contact Admin

Install instructions - need your confirmation, please - Contact Admin

Install instructions - need your confirmation, please

by lexus » Wed Jul 12, 2017 9:47 pm

Hi,

I am using phpbb 3.2 with prosilver/we_clearblue compatible style installed and enabled. The default "Contact us" link for the forum is:

https://www.domain.eu/forum/memberlist. ... ntactadmin

and it's working well.

But with the "Contact Admin" extension enabled the link has been changed to:

https://www.domain.eu/forum/app.php/contactadmin

Issue:

The contact page is displayed, but when I press submit the HTTP 500 error is returned.

This is because the contactadmin.php and contact_constants.php from "rmcgirr83\contactadmin\core" folder are not present under the "/public_html/forum" path (in my case) ?

I have copied these two files under /public_html/forum and the HTTP 500 error is solved, but I need to know if this is the right approach or should I check further the issue.

Thank you
lexus
Registered User
Posts: 15
Joined: Mon May 29, 2017 9:27 pm
Contact:

Re: Install instructions - need your confirmation, please

by RMcGirr83 » Thu Jul 13, 2017 9:44 am

They don't belong there...read this

https://www.phpbb.com/extensions/installing/
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Install instructions - need your confirmation, please

by lexus » Thu Jul 13, 2017 10:04 am

Hi,

But the extension is stored under "../ext" folder. I am missing something ?

The link

https://www.domain.eu/forum/app.php/contactadmin

is not working without having copied the "contactadmin.php and contact_constants.php" from "../ext/rmcgirr83/contactadmin/core" to /public_html/forum.

Thx
lexus
Registered User
Posts: 15
Joined: Mon May 29, 2017 9:27 pm
Contact:

Re: Install instructions - need your confirmation, please

by RMcGirr83 » Thu Jul 13, 2017 10:15 am

Try turning on url rewriting in the ACP. Don't know why you get 500 server errors. What do the server logs say
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Install instructions - need your confirmation, please

by lexus » Thu Jul 13, 2017 6:56 pm

Hi,

When URL Rewriting is enabled, URLs containing ’app.php’ will be rewritten to remove the filename (i.e. ../forum/app.php/contactadmin will become ../forum/contactadmin) and doesn't help me because the by default "contactadmin.php and contact_constants.php" are not present under /public_html/forum and cannot be loaded from this path.

I have enabled the URL Rewriting from ACP, purged the cache + browser cache, etc, checked if the Apache mod_rewrite is enabled. No luck!

Please find the output of the .htaccess file from ../public_html/forum path:

<IfModule mod_rewrite.c>

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>

<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>

The browser console output:

HTTP500: SERVER ERROR - The server encountered an unexpected condition that prevented it from fulfilling the request.

POST - https://www.domain.eu/forum/contactadmin

Checked and there is no error in the Web Server logs.

I have recreated the .htaccess from /public_html. No luck!

.htaccess output:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\-free\.eu$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\-free\.eu$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^/?$ "https\:\/\/www\.domain\-free\.eu\/forum\/" [R=301,L]

Currently I don't have installed any SEO URL or static URL extension or similar.

All the enabled extensions are:

Advanced BBCode Box 3.1.4
Annual Stars 1.0.2
Application Form 1.0.6
Auto Groups 2.0.0
Board Announcements 1.0.6
Contact Admin 1.1.3
Lightbox 1.0.4
Notify Admin on Registration 1.0.1
Paypal Donation 1.0.3
phpBB Media Embed PlugIn 1.0.0
Precise Similar Topics 1.4.2
Share On 2.0.1
Stop Forum Spam 1.1.4
Unique Visits Counter 1.0.3
Who Visited This Topic 1.0.5

Please what else should I check ?

Thank you
lexus
Registered User
Posts: 15
Joined: Mon May 29, 2017 9:27 pm
Contact:

Re: Install instructions - need your confirmation, please

by RMcGirr83 » Thu Jul 13, 2017 7:27 pm

If the server is tossing a 500 error it should log the error in the server error logs as to why. Ask your host for them.

PS I can't help you if you give a link to a bogus site.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Install instructions - need your confirmation, please

by lexus » Thu Jul 13, 2017 8:26 pm

Hi RMcGirr83,

Please find my latest actions to solve the issue:

1. Removed the contactadmin.php and contact_constants.php from ../public_html/forum path.

2. Disabled the URL rewriting from ACP > Server Settings > (Enable URL Rewriting: No).

3. I have uploaded the latest version of main_controller.php from https://github.com/rmcgirr83/contactadmin to /public_html/forum/ext/rmcgirr83/contactadmin/controller.

4. Purged the cache from ACP. Purged the browser cache.

5. Tested the behavior with guest and a registered user in Edge and Mozzila Firefox. No issue.

Thx a lot for your help
lexus
Registered User
Posts: 15
Joined: Mon May 29, 2017 9:27 pm
Contact: