News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)

Started by SlammedDime, December 05, 2009, 10:08:40 PM

Previous topic - Next topic

Xarcell

Quote from: Suki on April 14, 2012, 08:58:05 PM
This mods work just fine on SMF 2.0.2 I used it without issues.

Can I see an url where this issue happens.

Inspire Romance

btang

Quote from: Suki on April 14, 2012, 08:58:05 PM
This mods work just fine on SMF 2.0.2 I used it without issues.

Can I see an url where this issue happens.

I can not install it on SMF 2.0.2. It said "Sorry, but this modification does not appear to be compatible with the selected version." Can you help?

Robert.


Suki

Quote from: Xarcell on April 14, 2012, 09:10:37 PM
Quote from: Suki on April 14, 2012, 08:58:05 PM
This mods work just fine on SMF 2.0.2 I used it without issues.

Can I see an url where this issue happens.

Inspire Romance

Do you have this option enable?

Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.

do you have the SMF setting "Search engine friendly URLs" enable?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Xarcell

#1364
Quote from: Suki on April 15, 2012, 11:11:06 AM

Do you have this option enable?

Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.

do you have the SMF setting "Search engine friendly URLs" enable?

No, I do not have it enabled. When I enable it, the links look like this "mydomain.com/board-1.0" and "mydomain.com/board-2.0", but they all redirect to my homepage instead of the board.

No, I do not have "Search friendly URL's on". They will not enable. I reckon SimpleSEF is preventing that from happening.

Any possible ideas on what could be causing this?

EDIT: now when I disable SimpleSEF it doesn't disable. Even if I clean forum cache. So I uninstalled it and this came up:

QuoteRestore File Permissions
/home/xarcell/public_html/inspireromance.com/Sources/bad-behavior/bad-behavior/banned.inc.php

I uninstalled bad behavior mod and tried it again, with no change. Still doesn't work properly. Now I'm going to try installing it on a test site running on the same server.

Xarcell

Ok, I tested it on a fresh installation of SMF 2.0.2 that is on the same server. Either it does work properly with SMF 2.0.2, or something's wrong with my server. I will continue to try and track down the problem.

NanoSector

Does your server have mod_rewrite enabled..?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Xarcell


Suki

You do have it, otherwise you won't be able to use the mod.

It is weird, on all the forums I installed this mod I never saw the board urls to use the ID only, usually the name is used

do you have any other script on your .htaccess file?

I want to assume is a weird server configuration or something else is modifying the urls after simpleSEF
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Xarcell

I can't seem to figure it out either.

The only thing in my .htaccess is:

RewriteEngine On
# Uncomment the following line if its not working right
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


Which is right according to simpleSEF help. I tried to delete the htaccess after simplesef uninstall, to see if it would recreate it on reinstall , but resulted in a 404 error on my site after I removed it.

Xarcell

I am getting this error in my log. Any idea on what is causing it?

Quotehttp://xxxxxx.com/Test/index.php?action=admin;area=packages;sa=uninstall2;package=SimpleSEF_2.1.tar.gz;pid=0
Could not remove or edit .htaccess file upon uninstall of SimpleSEF

and

Quote
http://xxxxxx.com/Test/index.php?action=admin;area=packages;sa=install2;package=SimpleSEF_2.1.tar.gz;pid=0
8: Undefined variable: hook
File: /home/xarcell/public_html/xarthemes.com/Test/Sources/SimpleSEF.php
Line: 781

btang

When I remove a topic, it will have an "Session verification error". If I disable simpleSEF, I won't have that problem. Please check it. Thanks.

androgyn3

#1372
Hi,

I have installed it on SMF 2.0.2 under Nginx 1.2.0, PHP 5.4 fpm+ APC

Th mod has not been recognized the server, i have comment the code :

/*     // We don't want to break boards, so we'll make sure some stuff exists before actually enabling
            if (!empty($_POST['simplesef_enable']) && empty($modSettings['simplesef_enable'])) {
                if (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') !== false && file_exists($boarddir . '/web.config'))
                    $_POST['simplesef_enable'] = strpos(implode('', file($boarddir . '/web.config')), '<action type="Rewrite" url="index.php?q={R:1}"') !== false ? 1 : 0;
                elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'IIS') === false && file_exists($boarddir . '/.htaccess'))
                    $_POST['simplesef_enable'] = strpos(implode('', file($boarddir . '/.htaccess')), 'RewriteRule ^(.*)$ index.php') !== false ? 1 : 0;
                elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'lighttpd') !== false)
                    $_POST['simplesef_enable'] = 1;
                elseif (strpos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false)
                    $_POST['simplesef_enable'] = 1;
                else
                    $_POST['simplesef_enable'] = 0;
            } */


otherwise the case enabled simple sef doesn't want keep check.

if i do a php test file with <?php echo '$_SERVER['SERVER_SOFTWARE']' ?>
my server say nginx/1.2.0


not very importante it's work with commented code.

I have some error in my log :

http://forum.domain.org/index.php?action=viewsmfile;filename=latest-news.js;q=viewsmfile%2Ffilename.latest-news.js%2F
8: ob_start(): failed to create buffer
Fichier: /var/www/forum/Sources/SimpleSEF.php
Ligne: 323


and

http://forum.domain.org/index.php?action=.xml;type=rss;q=.xml%2Ftype.rss%2F
8: ob_start(): failed to create buffer
Fichier: /var/www/forum/Sources/SimpleSEF.php
Ligne: 323


The RSS link http://forum.doamin.org/.xml/type.rss/ work but cause error.

How i can correct this ? (all my log is full of this 2 error). "ob_start(): failed to create buffer" is a cache problem ?

BaghdadGhost

Hi,

thanks for the great mod.

I installed it without any errors on smf 2.0.2

I have these two choices enabled without changing the other entries

Enable SimpleSEF
Requires mod_rewrite support or Url Rewrite/web.config (IIS7) support. Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.

Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.

then I also put the provided help code in .htaccess file.

after emptying the cache I found out that the URL was changed correctly

when click on last post it takes me correctly to it and with a html URL of topic.

but when I click on board it gives me the board new link but redirect me to the forum main page again! I already tried with English only board title.

I use English and arabic-utf8 and the above happens in both cases.

any idea what needs to be done here?

thanks

BaghdadGhost

Update:


when I disable

Create Simple URLs
Urls will look like /forum/board-1/, or /forum/topic-3.html instead of content filled.

it actually give me access to boards, but here we have another problem.

if the name of the board in Arabic it actually transliterate the words lol i.e. if the name of the board is Admin board in Arabic it changes it to qism_idari   :P

its also so slow when clicking an Arabic titled topic and also does the same to the tittle.

and Idea about this mess

thanks

BaghdadGhost

any idea about the above posted problem?



Arantor

It's done that way for a reason: there are all sorts of issues with using Arabic in URLs, as in they won't always work properly - which is why this mod's author changed it.
Holder of controversial views, all of which my own.


BaghdadGhost

Quote from: Arantor on July 11, 2012, 10:25:16 AM
It's done that way for a reason: there are all sorts of issues with using Arabic in URLs, as in they won't always work properly - which is why this mod's author changed it.

thanks Arantor,

see when I enable "Create Simple URLs" it does the job perfectly to topics. the only problem with is is that it won't allow me to access boards! when I click any board (english or arabic) it loads the main page and display a modified board link!

do you think of any reason for this?

thanks

BaghdadGhost


Arantor

*shrug* I got nothing, then. The whole point is that it's suppose to transliterate to avoid all kinds of mess in URLs.
Holder of controversial views, all of which my own.


Advertisement: