[CLOSED] JM_Forum does not work with pretty URL

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

[CLOSED] JM_Forum does not work with pretty URL

Post by frankmanl »

Sep 7, 2013 - I close this post since I don't use JM_Forum anymore

I tested JM_Forum on my test site - works perfectly.
On the site of a client it does not. With pretty URLs turned off on that site the module is OK, but with pretty URLs turned on I can't enter any forum and I can't read the posts.
The only thing I see is the list of forums.
jmforum.jpg
When I click on one of those the URL changes from

Code: Select all

http://www.clientsdomain.com/prikbord
to

Code: Select all

http://www.clientsdomain.com/forum/board/2/1/62
but nothing else changes, I can't read any posts.
What can be the reason for this?

Frank
----------------------------------------------

Cms Version: 1.11.4

Installed Modules:

CMSMailer: 5.2.1
CMSPrinting: 1.0.3
FileManager: 1.4.3
MenuManager: 1.8.5
MicroTiny: 1.2.5
ModuleManager: 1.5.5
News: 2.12.10
Search: 1.7.7
ThemeManager: 1.1.7
CGExtensions: 1.31.4
FrontEndUsers: 1.21.2
OwnersManual: 1.0.3
JM_Forum: 1.0.0
TinyMCE: 2.9.12
FormBuilder: 0.7.3
CustomContent: 1.8.3


Config Information:

php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 32000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.2.17
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
memory_limit: 128M
max_execution_time: 90
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 64M
upload_max_filesize: 32M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysqli)
Server Db Version: 5.0.90
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

----------------------------------------------
Last edited by frankmanl on Sat Sep 07, 2013 2:18 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: JM_Forum does not work with pretty URL

Post by Dr.CSS »

You most likely need to add a page extension, .html, .php, etc. in your config.php...
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: JM_Forum does not work with pretty URL

Post by Jo Morg »

frankmanl wrote:I tested JM_Forum on my test site - works perfectly.On the site of a client it does not. With pretty URLs turned off on that site the module is OK, but with pretty URLs turned on I can't enter any forum and I can't read the posts.The only thing I see is the list of forums.
OK. When you say that it works perfectly on your test site, do you mean: with pretty URLs turned on? If so there must be some difference from one installation to the other.
Dr.CSS wrote:You most likely need to add a page extension, .html, .php, etc. in your config.php...
That too could be an issue. But if it doesn't help, then I would have to check what IS different between installations.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: JM_Forum does not work with pretty URL

Post by frankmanl »

@Dr.CSS: neither .html nor .php help.

@Jo Morg: I'm logged in (FEU) with a user that belongs to a group that has authority to see and manage posts in the forum.
The test site indeed uses pretty URLs but is run at a different host.
The client's site is run at a host wich always gives me headaches (see e.g. http://forum.cmsmadesimple.org/viewtopi ... =7&t=64499). They use some configuration which causes the site to behave differently from all other sites I manage. But still, I should be able to make it work, shouldn't I?

Systeminfo of test site:
----------------------------------------------

Cms Version: 1.11.4

Installed Modules:

CMSMailer: 5.2.1
CMSPrinting: 1.0.3
FileManager: 1.4.3
MenuManager: 1.8.5
MicroTiny: 1.2.5
ModuleManager: 1.5.5
News: 2.12.10
Search: 1.7.7
ThemeManager: 1.1.7
CGExtensions: 1.31.3
FrontEndUsers: 1.21.2
JM_Forum: 1.0.0


Config Information:

php_memory_limit:
process_whole_template:
output_compression:
max_upload_size: 2000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.3
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 0
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 8M
upload_max_filesize: 2M
session_save_path: /tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 4.1.21
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

----------------------------------------------
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: JM_Forum does not work with pretty URL

Post by Jo Morg »

frankmanl wrote:When I click on one of those the URL changes from

Code: Select all

http://www.clientsdomain.com/prikbord
to

Code: Select all

http://www.clientsdomain.com/forum/board/2/1/62
OK given the fact that it works on one server and not on the other, I have some more questions for you:
  • - is cmsms installed on a folder (as it seems: prikbord) instead of the root?
  • - was it moved at some point from one server to another?
Also it would be good if you could post here your config.php (remember to remove the db password and username) and your .htaccess file.
There are two possibilities so far (at least AFAIK):
  • - some misconfiguration in config.php (probably some path);
  • - something wrong with .htaccess (maybe RewriteBase doesn't reflect correctly your cmsms install folder);
    it may have to be set like:

    Code: Select all

    RewriteBase /prikbord
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: JM_Forum does not work with pretty URL

Post by frankmanl »

It is a fresh install in a subdomain.
The host does not let me enter the subdomains directly.
With other hosts I'm used to enter a subdomain (in PLESK) by navigating to subdomains in the root directory:
jmforum1.jpg
jmforum1.jpg (26.05 KiB) Viewed 1799 times
With this host however I must navigate to httpdocs and then to a directory subdomeinen they created there:
jmforum2.jpg
From there to the subdomain I created (lounge) and to a directory cmsms I created in that.
So in the end I'm here:
jmforum3.jpg
jmforum3.jpg (8.58 KiB) Viewed 1799 times
In the root of the subdomain (/httpdocs/subdomeinen/lounge) I have this .htaccess:

Code: Select all

# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# (this is important, so uncomment if your host permit)
Options -Indexes
ServerSignature Off

Options +FollowSymLinks

# To prevent E_STRICT problems with PHP 5.3+ you can uncomment the following lines
# Note: These settings should only be enabled for production sites!
#php_flag display_startup_errors 0
#php_flag display_errors 0
#php_flag html_errors 0
#php_value docref_root 0
#php_value docref_ext 0

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteOptions inherit
#
#Sub-dir e.g: /cmsms
RewriteBase /

# direct doorverwijzen naar cmsms-map en verbergen van /cmsms in URL
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule !^cmsms(/?|/.+)$ cmsms%{REQUEST_URI}

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>

<IfModule mod_header.c>
# Disable ETags
Header unset ETag
FileEtag None
</IfModule>

<IfModule mod_deflate.c>
# Compress css, plaintext, xml, gif, and images in transport.
AddOutputFilterByType DEFLATE text/css text/plain text/xml image/gif image/jpeg image/png
</IfModule>

<IfModule mod_expires.c>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
# Set expires tags on various files... so that the browser wont attempt to reload them.
ExpiresActive On
ExpiresDefault "access plus 1 year"
<IfModule mod_header.c>
  # Setting cache control to public allowes proxy servers to cache the items too.
  Header set Cache-Control "public"
</IfModule>
</FilesMatch>
</IfModule>
and my config.php in /httpdocs/subdomeinen/lounge/cmsms is:

Code: Select all

<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysqli';
$config['db_hostname'] = 'localhost';
$config['db_username'] = ••••;
$config['db_password'] = ••••;
$config['db_name'] = ••••;
$config['db_prefix'] = 'lounge_';
$config['timezone'] = 'Europe/Amsterdam';

#Upload Settings
#Permissions for uploaded files.  This only really needs changing if your host has a weird permissions scheme.
$config['default_upload_permission'] = '777';

$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.php';
$config['root_url'] = 'http://lounge.thestoryconnection.nl';
?>
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: JM_Forum does not work with pretty URL

Post by velden »

When I click on one of those the URL changes from
Code:
http://www.clientsdomain.com/prikbord

to
Code:
http://www.clientsdomain.com/forum/board/2/1/62
Ik ken JM_forum niet, maar het zal toch niet zoiets simpels zijn als dat je ergens in de instellingen van het forum moet instellen dat het niet 'forum' is maar 'prikbord'?

Sorry for my Dutch answer. Translated:

I don't know JM_forum myself, but could it be something as simple as changing a setting of this forum that tells it the url/folder is not 'forum' but 'prikbord'?
User avatar
frankmanl
Power Poster
Power Poster
Posts: 425
Joined: Sat Jul 12, 2008 3:50 am

Re: JM_Forum does not work with pretty URL

Post by frankmanl »

@velden: no, when I change back to not so pretty URLs it works fine.
Post Reply

Return to “Modules/Add-Ons”