collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 405
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: Basic SP Page problem  (Read 5034 times)

0 Members and 2 Guests are viewing this topic.

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Basic SP Page problem
« on: January 17, 2011, 09:24:03 AM »
SMF Version:   2 RC4
SP Version:   2.3.3

Mods installed

1.Avatar Verification         1.4.1    
2.Join date and Location in Posts   1.1    
3.Gamer IDs            1.02    
4.Aeva ~ Auto-Embed Video & Audio   7.1    
5.SimplePortal            2.3.3    
6.Copyright & Footer Links | S-Ace   3.1    
 
Problem:

I created a basic html page with the SP page option. In a html block on the portal there is hyperlink to this page. When logged in as a user this page works with no problem

Regardless of permissions I must set page permissions to "ignore permissions" for guests to see this page. Also noted the when a new guest selects the hyperlink the html content for the page is not rendered. Basically header and footer and everything else is there, except for the contents of the html page (created with the page option). 

To get this to work the guest must select the home link and reselect the hyperlink in the portal block. Then the page renders correctly for the guest.

Comparing urls for the page id are the same when it works and does not. Also no errors in the log. Monitoring the network via firebug nothing was noted. Issue duplicated on firefox, IE and Chome. 

I would suspect that either I have something set incorrectly, or assuming this functions as a add-on page like php-fusion and that not being the case. 

Any insight is appreciated...


Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Basic SP Page problem
« Reply #1 on: January 17, 2011, 12:03:42 PM »
Please provide:

* Link that I can use to see the problem myself
 
* A picture of all the permission settings for that page.
 
Thanks
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #2 on: January 17, 2011, 12:38:16 PM »
I cleared the original block and created a new block for test purposes. Also thinking with custom permission profile had something to do with that I set every thing back to default to simplify...

Link - hXtXp://www.veteranwargamer.com

Clearing all cache and going to the page directly works link - hXtXp://www.veteranwargamer.com/index.php/page,page1229.html

I created a new bbc block just for test purposes with the link it. Block is called WC2

By clicking the link with a cleared cache results as indicated in my OP.

Current permission for the page attached.

Thanks

« Last Edit: January 17, 2011, 09:27:34 PM by slop_chute »

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #3 on: January 17, 2011, 09:03:43 PM »
Additional info:

I found this post as its similar behavior. The only difference is a link in an SP Block to an SP page instead of a forum post. I would suspect it the same issue after monitoring session activity -guest vs member. 

http://simpleportal.net/index.php?topic=4202.0


This also refers to SMF but issue is marked as resolved but not sure when.

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #4 on: January 17, 2011, 09:30:34 PM »
I tested this with an  XAMMP server and could not duplicate -so I suspect this is a hosting issue. You can mark this resolved  and not SP related at this time .

Thanks


Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #5 on: January 18, 2011, 07:49:08 AM »
Follow up

When creating a block with a  hyperlink to post or any other place in the forum will work. I thought maybe phpsuexec issue  on my host, but I would think that any link to the forum would fail in this manner. It seems that only when guest is directed to a SP page (with guest permissions) I have this issue and it seems to be session based or guest access to an SP page. I will work around by putting the content in a thread. I will do more digging on my end, but if you have any additional insight .. Thanks   

   

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Basic SP Page problem
« Reply #6 on: January 18, 2011, 09:16:36 AM »
I have no information about your site -- not even a link.
So I cannot provide any additional insight.
 
Do your URLS look like the ones in the post you reference?
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #7 on: January 18, 2011, 10:50:42 AM »
Hmm- I replied to your requests and attached a screenshot.  What is funny when looking at this thread as a guest I don't see any of my replies. When I am logged in - I do. 

Based on your response I suspect you don't see my replies -

Thanks

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #8 on: January 18, 2011, 11:08:47 AM »
The post with my links and attachment the background is red - I assuming it has to be approved ..

Thanks


Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Basic SP Page problem
« Reply #9 on: January 18, 2011, 11:10:59 AM »
It would appear I cannot view the unapproved posts and topics. I did see your most recent post.
It looks like the ones I cannot see are the ones with links and/or attachments.
 
I have reported this problem, and will get back to you when I learn anything.
 
Sorry for the confusion.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #10 on: January 18, 2011, 12:43:05 PM »
No worries :)

Thank you!

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Basic SP Page problem
« Reply #11 on: January 19, 2011, 09:54:55 AM »
I have not heard back about a solution to the "I can't see your posts" problem.
Can you try posting the link information so it doesn't LOOK like links?
 
Just leave out the http:// part.
 
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #12 on: January 19, 2011, 04:40:51 PM »
Sure..

I have attempted to simply or remove some of the variables

I have removed all mods and currently set to default curve theme.

This problem seems to related based on whether a cookie is set or not.


I disabled all the blocks and have 2 test blocks on the portal.

www.veteranwargamer.com/index.php

1st top block has a hyperlink to an SP page.
2nd block has a link to an forum post.

What I have observed is that if cookies are disabled, selecting the link to the SP page the table will not be rendered.  This occurs whether you are  a guest or a member, including admin.

This happens regardless of permissions for the SP ( I tested all combinations with the same result).
This explains the OP post behavior by selecting one of the forum links (cookie gets set) and the page will function.

If I enter the url to the page directly (cookies disabled or not) the page functions correctly. 

I did noticed that for some reason when selecting the hyperlink in the block for the page, or when it fails a &/ after the session_id (cookies off) instead of & after the session_id .

The page for reference is
www.veteranwargamer.com/index.php/page=page1229

In a nutshell if you disable cookies in your browser you will exhibit the problem quickly.

I find this strange as all forum links function from blocks (hyperlink) fine except for SP pages.

Thanks for your help




Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Basic SP Page problem
« Reply #13 on: January 20, 2011, 07:11:34 AM »
SMF relies on cookies just to keep you logged in. Its default setting is to use client-side cookies. SimplePortal relies on cookies, too. In general, the SMF experience is better with cookies.
 
Still, something is not quite right with how these links are handled. And I think it is an SMF problem. It might not be a bug, exactly. I'll ask the devs.
Please supply the complete contents of the two custom PHP blocks you used to create the link to the page and the link to the topic.
I am especially interested to find out if your links contain index.php
 
You have SEF(Search Engine Friendly) URLS turned on, right?
 
-------------------------------------------
Here's what seems to happen. If there is no cookie, your URL turns out to be like http://www.veteranwargamer.com/index.php?PHPSESSID=ssssssssssssssssssssssssssss&/page1229
 
This happens until your browser creates a cookie. After the browser puts the session info in a cookie, SMF stops generating the PHPSESSID part of the URL. If you turn cookies off, you get the PHPSESSID part every single time.
 
But this URL is just plain weird, and impossible for SMF to interpret.  SMF *NEVER* uses "&" to separate parts of the query string.  It always uses ";".
 
SMF decides if an incoming URL is SEF by checking for "index.php". So SMF would assume this is a non-SEF URL. It would then find the query string like this
 
?
PHPSESSID=ssssssssssssssssssssssssssss
&
/page1229
 
where /page1229probably doesn't make any sense.
 
 
Which is completely inappropriate for SEF URLs. According to the devs (including our own Sinan), SMF checks for index.php in order to decide if the URL is a SEF URL. So an SMF url with index.php should be index.php?page=1229, or index.php?PHPSESSID=ssssssss;page=1229, since SMF always uses ";" instead of "&" to separate query elements in the URL.
 
So if you use a URL like that to access your forum, SMF will decide to use the "regular" (non-SEF) way of interpreting it.
So the first query element is PHPSESSID=sssssss
And the second one would have to be /page1229 (because ; and & work the same)
 
I'm not so sure about "/" as the first character of a query element name.
 
« Last Edit: January 20, 2011, 08:24:20 AM by AngelinaBelle »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #14 on: January 20, 2011, 08:01:26 AM »
I just found it the problem - 

What is puzzling this worked with once a cookie was set. I would of thought I would of got a page not found.

the "/" was the key.

the url in the block was

Code: [Select]
<a href="http://www.veteranwargamer.com/index.php/page=page1229">mission</a>
fix

Code: [Select]
<a href="http://www.veteranwargamer.com/index.php?page=page1229">mission</a>
 facepalm.

Not sure how I did this but - considering what was going on it had to be something stupid

Thanks

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #15 on: January 20, 2011, 08:02:17 AM »
Thanks for your help regardless !

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Basic SP Page problem
« Reply #16 on: January 20, 2011, 08:25:39 AM »
LOL!  I assumed you were using SEF URLS.
I should have asked for an exact copy of that custom block.
« Last Edit: January 20, 2011, 11:26:15 AM by AngelinaBelle »
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #17 on: January 20, 2011, 03:05:25 PM »
Actually, I was at the time - I turned it back on and that is where I got the link from.

I was wondering where I picked that up, and bingo -

I turned it off while looking at this issue, so I could see what was going on.   

So when you create a an SP page with SEF turned on that is what you get.

Well if works fine not using the SEF link. If you do it seems to not like it.






 



 


Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Basic SP Page problem
« Reply #18 on: January 20, 2011, 04:16:25 PM »
What really doesn't work is a halfway-SEF link.
Anything that contains index.php says "not SEF" to SMF.
 
But a totally not-SEF link will always work, even with SEF on.
 
Glad you figured it out.
 
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline slop_chute

  • Semi Newbie
  • *
  • Posts: 43
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Basic SP Page problem
« Reply #19 on: January 21, 2011, 08:07:02 AM »
Hi,

Okay to make sure I get what your saying of this behavior, I will summarize just to make sure I did not miss something. I retested this on server XAMPP and got the same result.


For example:

Varible : SEF enabled
Variable: cookies enabled

1)Create the SP Page:

I go to the SP page and create a custom html page.


I create a page for example with the contents of "123" and save it (page3203)


I go to the page list and select select the hyperlink for the page and the page is     displayed


In the browser url bar the url for the SP page is:

Code: [Select]
http://www.example.com/index.php/page,page3203.html

2) Create a block:

I create an an HTML block the contents of the block only has a "a tag" or link to the page above.

Code: [Select]
<a href="http://www.example.com/index.php/page,page3203.html">link1</a><br />
then save the block.


Vistor behavior:

A visitor to the site with no cache or cookie set (phpsessionid in url), upon selecting the hyperlink in the block will render the blank page and will not work until a cookie is set. Disabling cookies will exhibit this behavior 100% and the visitor will never see the page.

To correct this, the hyperlink in the block to the page must be the non SEF link or in the form of :

Code: [Select]
<a href="http://www.example.com/index.php?page,page3203.html">link1</a><br />
or turn SEF off.

Correct behavior ?


Thanks