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

wynnyelle

Quote from: Groovystar on August 19, 2011, 03:35:09 PM
I was told to post my PHP errors here.

Quote
http://warriorcatsrpg.com/index.php?action=post2;roleplay-resources-clan-joinings=;%5C%27___smf_images_url___%5C%27=;english=;new_gif=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
   Apply Filter: Only show the error messages of this member arrowsoul
     Reverse chronological order of list Today at 02:27:31 PM
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;roleplay-resources-clan-joinings=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
   Apply Filter: Only show the error messages of this member ~Wo!fwh1$per_$t@r~will be on and off due to school...
     Reverse chronological order of list Today at 02:27:28 PM
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=0;roleplay-resources-clan-joinings=;%25smileySource%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455

Something keeps happening on line 455. Would anybody want to take a look? Thanks!

MrMike

I've installed Simple SEF but can't get it to activate.

I've verified that the .htaccess file contains the following lines (and I've even unconmented the rewriteBase line as a test):

RewriteEngine On
# Uncomment the following line if its not working right
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
The server does have mod_rewrite installed.

No matter what I do, the "Enable SimpleSEF" checkbox will not stay checked. (??)
Any ideas on what I could try next?

Current config:
SMF version: SMF 2.0

Installed Mods:
SimpleSEF     2.1
SMF Archive     2.0
Karma Buttons     1.1
Tagging System     2.4.2
Limit Posts Per Day     1.0
Hide SMF Version     1.0.6a
Last Users In 24 Hours     1.0
More Spiders     1.2
Contact Page     3.0

feline

The .htaccess must be as follow:

RewriteEngine on
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

MrMike

Thank you- I didn't srcoll down far enough to see the last line in the Simple SEF help text ('RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]'').

Now it's keeping the checkbox checked, but I'm not seeing the kind of URLs I think I should be seeing...for example, on a post titled "Windows Xp Drivers x32/x64 Update", the link appears as

http://www.domain.com/10/-313260.0.html

No keywords and no actual text in the URL...I do not have the "Create Simple URLs" box cheked. What I have is:

Enable SimpleSEF - checked

Create Simple URLs - not checked

Character to be used for spaces in the url - set to '-' (a dash)

Topic Extension - set to 'html'

Advanced Options - checked

I must be doing something wrong, but I've no idea what. (??)




Quote from: feline on August 27, 2011, 11:52:55 AM
The .htaccess must be as follow:

RewriteEngine on
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]


wynnyelle

Hi I am getting this error a lot, it's filling up my error logs:

Quote
Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=1020;roleplay-resources-clan-joinings=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455

How would I fix this, does anyone know?

feline

Quote from: MrMike on August 27, 2011, 12:51:00 PM
Thank you- I didn't srcoll down far enough to see the last line in the Simple SEF help text ('RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]'').

Now it's keeping the checkbox checked, but I'm not seeing the kind of URLs I think I should be seeing...for example, on a post titled "Windows Xp Drivers x32/x64 Update", the link appears as

http://www.domain.com/10/-313260.0.html
I think this problem is this code part in SimpleSEF.php

            if (!isset($utf8_db[$charBank])) {
                // Load up the bank if it's not already in memory
                $dbFile = $sourcedir . '/SimpleSEF-Db/x' . sprintf('%02x', $charBank) . '.php';

                if (!is_readable($dbFile) || !@include_once($dbFile))
                    $utf8_db[$charBank] = array();
            }

Replace that with

            if (!isset($utf8_db[$charBank])) {
                // Load up the bank if it's not already in memory
                $dbFile = $sourcedir . '/SimpleSEF-Db/x' . sprintf('%02x', $charBank) . '.php';

if(file_exists($dbFile))
include_once($dbFile);
else
$utf8_db[$charBank] = array();
            }

MrMike

I made the change below, but I didn't see any difference.  :(

URLs still appear as something like "http://www.domain.com/11/-313273.0.html"


Quote from: feline on August 28, 2011, 10:21:41 AM
I think this problem is this code part in SimpleSEF.php

            if (!isset($utf8_db[$charBank])) {
                // Load up the bank if it's not already in memory
                $dbFile = $sourcedir . '/SimpleSEF-Db/x' . sprintf('%02x', $charBank) . '.php';

                if (!is_readable($dbFile) || !@include_once($dbFile))
                    $utf8_db[$charBank] = array();
            }

Replace that with

            if (!isset($utf8_db[$charBank])) {
                // Load up the bank if it's not already in memory
                $dbFile = $sourcedir . '/SimpleSEF-Db/x' . sprintf('%02x', $charBank) . '.php';

      if(file_exists($dbFile))
         include_once($dbFile);
      else
         $utf8_db[$charBank] = array();
            }


feline

Look at your server if the folder /Sources/SimpleSEF-Db/ exist and you find in the folder a lot of files (x00.php .. xff.php)

MrMike

#1268
Quote from: feline on August 28, 2011, 06:17:41 PM
Look at your server if the folder /Sources/SimpleSEF-Db/ exist and you find in the folder a lot of files (x00.php .. xff.php)

Yes, I see lots of files like that in the directory.

feline

Check if the access for the folder 755 and for the files 644 ...

MrMike

Quote from: feline on August 29, 2011, 07:35:07 AM
Check if the access for the folder 755 and for the files 644 ...

The folder is chmod 755, the files inside it all have permissions of 600.

feline

Try to change the permission to 644 for the files ...

MrMike

Quote from: feline on August 29, 2011, 12:44:51 PM
Try to change the permission to 644 for the files ...

I did that and then turned SEF on, but I didn't see any change. The URLs look like this:

http://www.domain.com/2/-152468.msg340571.html

Another odd thing I noticed is that the very first board in the very first group can't be reached at all when Simple SEF is on...the URL looks like this:

http://www.domain.com/board/

This is an invalid URL and returns an SMF error.

All the other boards in all other categories have URLs similar to this one below, with a different number for each board, and they all work:

http://www.domain.com/5/

I've verified this on both a custom theme and on the Curve theme. 

MrMike

No suggestions or possible solutions on this issue?

I'd love to use Simple SEF (and even made a donation), but if these issues can't be resolved then there's no way I can use it. :(


MrMike

Okay, no response, no reply. At this point I've given up on using Simple SEF.

Derof

This mod (2.1 version) is buggy!

You could destroy the forum - adds to the noindex meta tags!


<meta name="robots" content="noindex" />


Through him I have lost all links!

--------------------
SMF version 2.0

Suki

Derof,  this mod dose not add any metatags to your forum.


this mod redirect the old urls:  index.php?topic=111  to the new ones automatically.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Derof

Quote from: Miss All Sunday on September 09, 2011, 09:53:17 AM
Derof,  this mod dose not add any metatags to your forum.
this mod redirect the old urls:  index.php?topic=111  to the new ones automatically.

Once installed and enabled, appears in the source code meta tags robots "noindex" in all the topics in the forum. After disabling simpleSEF - no robots meta tag at all. Most of my topics in my two forums were removed from the google search engine. I resigned from this.

Suki

Well, first of all, Google does not make changes to their search engine every time you make changes to your website...  so it's hard to believe that immediately after you installed this mod all your search results were gone...

But to each their own, I had used this mod since the first version in apache and in LiteSpeed with no issues at all and no metatags added...

<meta name="robots" content="noindex"/>   its in by default in SMF 2.0

you can set this or unset it for every page you don't want to be indexed, I do this in the FAQ mod


take a look at your Index.template.php file:

   // Please don't index these Mr Robot.
   if (!empty($context['robot_no_index']))
      echo '
   <meta name="robots" content="noindex" />';
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: