News:

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

Main Menu

Pretty URLs

Started by SMFHacks.com Team, January 31, 2007, 10:56:43 AM

Previous topic - Next topic

vbgamer45

Use this version... Should be the same but there was a minor update that I did
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

peter_mein

Hello
The new file works without errors.
Thank you for the solution.

kind regards Peter



vbgamer45

4.0.1
Fixed a few error logs with display and messagindex in certain cases.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vicente127

Hello, when using pretty urls it won't let me switch themes, it will just refresh and show the same page with the same theme, unless I'm on the index of the forum, then the switch will work. Do you know how can I make it work anywhere?

vbgamer45

Are you using a mod to change themes?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


peter_mein

Hello
At the moment this error comes again and again.

Fehlermeldung
JSON-Dekodierungsfehler: Die maximale Stack-Tiefe wurde überschritten
Datei
/Sources/Load.php
Zeile
3904
URL der Seite die den Fehler erzeugte
https://www.pic-microcontroller.de/index.php?action=profile;area=alerts_popup;counter=0;u=4
Backtrace-Information

    #0: smf_json_decode()
    Aufgerufen von /Sources/Load.php in Zeile 3904
    #1: cache_get_data()
    Aufgerufen von /Sources/PrettyUrls-Filters.php in Zeile 225
    #2: pretty_rewrite_buffer_fromcache()
    Aufgerufen von /Sources/PrettyUrls-Filters.php in Zeile 21
    #3: pretty_rewrite_buffer()
    Aufgerufen von /Sources/QueryString.php in Zeile 770
    #4: ob_sessrewrite()
    Aufgerufen von unbekannt in Zeile -1

SMF 2.1.4
Mod: 4.0.1

gevv

Hello,

I see the same error too



index.php?action=profile;area=alerts_popup;counter=0;u=1
Sources/Load.php (Line 3917)


Error type: Fatal

JSON decoding error: Maximum stack depth exceeded

==>3917: return empty($value) ? null : (isset($smcFunc['json_decode']) ? $smcFunc['json_decode']($value, true) : smf_json_decode($value, true));
Trackback information

     #0: smf_json_decode()
     Searched by /Sources/Load.php on line 3917

     #1: cache_get_data()
     Searched by /Sources/PrettyUrls-Filters.php on line 225

     #2: pretty_rewrite_buffer_fromcache()
     Searched by /Sources/PrettyUrls-Filters.php on line 21

     #3: pretty_rewrite_buffer()
     Searched by /Sources/QueryString.php on line 751

     #4: ob_sessrewrite()
     Searched by unknown on line -1


SMF 2.1.4
Pretty URLs v4.0.1
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

vbgamer45

Copy this file to your sources folder and see if it helps.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gevv

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

gevv

Old errors do not appear.

New Error records when looking at the profile page (users or guests) ;


index.php?action=profile;u=10894
/PrettyUrls-Filters.php (Line 18)

Error type: Undefined
Select error message
8: Undefined index: area
==>18: if ($_REQUEST['action'] == 'profile'  && $_REQUEST['area'] && $_REQUEST['area'] == 'alerts_popup')

Trackback information

     #0: smf_error_handler()
     Searched by /Sources/PrettyUrls-Filters.php on line 18

     #1: pretty_rewrite_buffer()
     Searched by /Sources/QueryString.php on line 751

     #2: ob_sessrewrite()
     Searched by unknown on line -1
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gevv

Too many guests errors occurred;
https://SITE.com/index.php?pretty;board=BOARD-TITLE;topic=TITLE.0&&utm_campaign=OTHER-SITE&utm_medium=referral&utm_source=OTHER-SITE;sslRedirect
Sources/Subs.php (Line 4569)
2: Invalid argument supplied for foreach()

Sources/Subs.php (Line 4569)
8: Undefined index: template_layers

Sources/Subs.php (Line 5574)
8: Undefined index: session_id

Sources/Subs.php (Line 5574)
8: Undefined index: session_var

Sources/Subs.php (Line 5428)
8: Undefined index: id

Sources/Subs.php (Line 5414)
8: Undefined index: is_guest
....
....
....


Trackback information

     #0: smf_error_handler()
     Searched by unknown on line -1

     #1: fopen()
     Searched by /Sources/Cache/APIs/FileBased.php on line 84
     #2: writeFile()

     Searched by /Sources/Cache/APIs/FileBased.php on line 166
     #3: putData()

     Searched by /Sources/Load.php on line 3862
     #4: cache_put_data()

     Searched by /Sources/PrettyUrls-Filters.php on line 263
     #5: pretty_rewrite_buffer_fromcache()

     Searched by /Sources/PrettyUrls-Filters.php on line 24
     #6: pretty_rewrite_buffer()

     Searched by /Sources/QueryString.php on line 751
     #7: ob_sessrewrite()

     Searched by unknown on line -1
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

vbgamer45

Looks like a different error different page though? Did this update fix the previous error?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gevv

yes previous errors are not visible
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

gevv

@vbgamer45   Could there be a conflict? Modifications I used;

Avatars Display Integration    
Automatic Attachment Rotation (and Resize)    
Smarter Internal Links    
FancyBox 4 SMF    
Topic Solved    
Pretty URLs    
Optimus    
Contact Page
AJAX Recent Topics    
PM to New Members    
Message Bookmarks
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

dmnlksm

If I install this mod, all the old URLs in the forum become inaccessible, right?

vbgamer45

The old urls work but get a 301 redirect to the new one.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

radge

Hello, I just installed this mod in SMF 2.1.4, I am as admin and the problem is that all the urls are sent to me at the beginning, I have this virtualhost in nginx

server {
    server_name ejemplo.com;

    root /var/www/html/test;
    index index.php index.html index.htm;
 

# Rules for: boards
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty&board=$1.0" last;
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/index.php?pretty&board=$1.$2" last;

# Rules for: topics
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty&board=$1&topic=$2.0" last;
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/index.php?pretty&board=$1&topic=$2.$3" last;

# Rules for: actions
rewrite ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(clock|coppa|credits|deletemsg|dlattach|editpoll|editpoll2|findmember)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(groups|help|helpadmin|jsmodify|jsoption|likes|lock|lockvoting)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(login|login2|logintfa|logout|markasread|mergetopics|mlist|moderate)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(modifycat|movetopic|movetopic2|notifyannouncements|notifyboard|notifytopic|pm|post)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(post2|printpage|profile|quotefast|quickmod|quickmod2|recent|reminder)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendactivation)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(signup|signup2|smstats|suggest|splittopics|stats|sticky|theme)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(trackip|about:unknown|unread|unreadreplies|uploadAttach|verificationcode|viewprofile|vote)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(viewquery|viewsmfile|who|\.xml|xmlhttp|forum)/?$ "/index.php?pretty&action=$1" last;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }


    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        expires max;
        log_not_found off;
    }

    location ~ /\.ht {
        deny all;
    }


Thxs.
Nuevo foro sobre renault http://www.renaultforo.com

Advertisement: