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: 376
  • 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: Adding a page  (Read 6907 times)

0 Members and 1 Guest are viewing this topic.

Offline bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Adding a page
« on: February 16, 2011, 12:47:06 AM »
When I try to add a page to Sp it gives me a white blank page after pressing "Add Page" Anyone have any ideas as to how to fix this. ???  There are no errors in the error logs at all either and I have not added any previous pages to this site at all.
« Last Edit: February 16, 2011, 01:37:41 AM by bigguy »
Using SMF 2.1 beta 4

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Adding a page
« Reply #1 on: February 16, 2011, 04:22:21 AM »
First thing that comes to mind is mod_security. Check that.

If that isn't it, could you give me a better description of your environment

Offline bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #2 on: February 16, 2011, 07:42:29 AM »
I know it's not mod security. Two sites on the same server and one of them I can add pages to and the other I can't. Both run RC4 with the patch and SP 2.3.3. Not to many mods installed on either site. I did forget to mention one thing now that I think about it. When I press add page, it's all white except for the post box, for some reason an outline of it shows at the top of the page. You can even add crap inside that box but that is all that shows is that outline of the box and thats it. I will get s screenshot. This is the "Add page" page.
Using SMF 2.1 beta 4

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Adding a page
« Reply #3 on: February 16, 2011, 08:20:59 AM »
Hmmm. Weird, indeed. Can you quote the HTML source code of the page?
And slowly, you come to realize... It's all as it should be...

Offline bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #4 on: February 16, 2011, 09:10:17 AM »
framed, generated or just source.
Using SMF 2.1 beta 4

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Adding a page
« Reply #5 on: February 16, 2011, 12:27:19 PM »
Can you quote the HTML source code of the page?
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 ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Adding a page
« Reply #6 on: February 16, 2011, 02:55:35 PM »
What mods in particular are installed, there seems to be a lot of javascript and custom things on that page

Offline bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #7 on: February 16, 2011, 05:45:34 PM »
Here are the mods that are installed. Also pertaining to quoting the source code. Is that file I gave you not good enough or did you want something else. Just tell me and I'll do it. Maybe I am not understanding the question and I know I should be.
Using SMF 2.1 beta 4

Offline bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #8 on: February 16, 2011, 09:22:56 PM »
The file attached to the above post is the generated source code from the page using Web Developer 1.1.9. The file attached to this post is the source code from the page in question using Web Developer 1.1.9. I'm not sure what other source code you want.

EDIT: It has a .php extension cause that is what my editor gave it so don't mind that.
« Last Edit: February 19, 2011, 12:36:49 AM by bigguy »
Using SMF 2.1 beta 4

Offline ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Adding a page
« Reply #9 on: February 16, 2011, 10:14:35 PM »
bigguy I believe they want the page source of the white page

Offline bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #10 on: February 16, 2011, 10:35:35 PM »
I have web developer add-on for firefox....it has a "view source" button....when I click it when I am on the white page and then go to view source This is what I get. I named this one index.html the last one was named source.php and the first one was named gen.php but they are all the same thing. These are only names I have given them. If I am getting this wrong then please tell me how you want me to get the source and I will. I could go to the view tab in Fire fox and press page source and that would end up with the same thing I have now.
Using SMF 2.1 beta 4

Offline bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #11 on: February 16, 2011, 10:43:53 PM »
I can not quote the source in the post because it only lets me post 20000 characters
Using SMF 2.1 beta 4

Offline bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #12 on: February 17, 2011, 12:55:19 AM »
Here is more source:

http://pastebin.com/edvQR835

Same thing I have posted to you here.

EDIT: also, this line does not exist in QueryString.php

Code: [Select]
\?(?:' . SID . ';)((?:board|topic
« Last Edit: February 17, 2011, 01:09:35 AM by bigguy »
Using SMF 2.1 beta 4

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Adding a page
« Reply #13 on: February 17, 2011, 07:40:08 AM »
Here's your problem (using developers tools to see the "after-the-js" HTML)
Code: [Select]
<body id="body" style="display: none;" instanceRef="[object Object]" addEventListener="function (sEvent, funcHandler, bCapture) {
    oTarget.attachEvent('on' + sEvent, funcHandler);
   }" removeEventListener="function (sEvent, funcHandler, bCapture) {
    oTarget.detachEvent('on' + sEvent, funcHandler);
   }" onload="">

The question is -- what caused that?
The answer seems to be simpleportal expects the textarea on that page to have an id="body". but you have <body id="body">. So the stuff that should have been applied to the textarea gets applied to the entire body because it comes first.
 
This will only happen on "page" pages.
 
Did your theme come that way (<body id="body">) or did some mod add that id for some other purpose?
 
 
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 bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #14 on: February 17, 2011, 08:34:26 AM »
I found where it is. I don't think a mod did that. It must be from the theme author I guess. This is what the body tag looks like in the theme:

Code: [Select]
<body id="body" ', empty($options['collapse_header']) ? '' : '', '>';
I changed it to:

Code: [Select]
<body>';
and the add page area showed as it should. Thank you for your help. I will watch things for a bit and see how it goes. Thank you for your help. Also while parsing SP there seems to be a line that does not exist in QueryString.php The line below is not there but SP looks for it to add "page" to it:

Code: [Select]
\?(?:' . SID . ';)((?:board|topic
I searched an unedited copy of QueryString from RC4 and that line is not found anywhere.

Again thank you for the help.
« Last Edit: February 17, 2011, 08:44:49 AM by bigguy »
Using SMF 2.1 beta 4

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Adding a page
« Reply #15 on: February 17, 2011, 09:50:42 AM »
I was surprised to see so much "invisible" HTML on the page.
It took me a couple of runs through the debugger to figure out the obvious -- it was related to the use of the editor.
 
The issue you bring up with QueryString seems unrelated to this. If it did not cause any error on install, I would not worry about it at this time.
 
I'll take a quick look at it myself, to see if I can figure out what that one is there for, and bring it up to the devs if it seems important.
 
I have started an enhancement ticket on concerning your issue. I don't know how common your issue might be.
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 bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #16 on: February 17, 2011, 01:12:14 PM »
Thanks for taking the time to look. :)
Using SMF 2.1 beta 4

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Adding a page
« Reply #17 on: February 17, 2011, 01:37:38 PM »
Do you actually find the string "board|topic|page" in QueryString.php?
The installer actually takes 3 runs at it (you can see this at http://custom.simplemachines.org/mods/index.php?action=parse;mod=1104;attach=160883;smf_version=2.0_RC4, where the first two are marked 'not vital')
 
 
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 bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #18 on: February 17, 2011, 10:39:28 PM »
I never parsed it using that parser so I wouldn't have seen that. I find a few instances of board|topic and those few I found I edited to board|topic|page when I installed the mod. That one I posted about is one that is marked vital so I guess this was down to a theme issue more than anything. I should have checked the default theme while going through all this cause it worked on it.
Using SMF 2.1 beta 4

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Adding a page
« Reply #19 on: February 18, 2011, 08:02:15 AM »
And the Package Manager install failed on QueryString.php? That's odd. But you did the changes in QueryString by hand?
 
I assume you got it right, one way or the other, because you are not reporting session problems.
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 bigguy

  • Comrade
  • *
  • Posts: 62
  • Gender: Male
  • W.u.B. Owner
    • Whats Ur Beef
  • SMF Version: 2 Beta 4
  • SP Version: None
Re: Adding a page
« Reply #20 on: February 19, 2011, 12:34:09 AM »
There are some session problems yes. Users have reported logout issues. All edits where done to the QueryString.php file though. Other than the one I posted about that I could not find.
Using SMF 2.1 beta 4

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Adding a page
« Reply #21 on: February 19, 2011, 12:54:16 PM »
You might want to double-check the manual changes in QueryString.php, just to make sure.
There is another problem causing logout issues lately though -- please search at simplemachines.org for information about a login bot attack hitting some sites, and causing unexpected logouts.
 
I cannot know if your problem is session-related, or if it is caused by something else.
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?