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: 666
  • 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]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Errors theme reletad  (Read 3117 times)

0 Members and 1 Guest are viewing this topic.

Offline nwobhm

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Errors theme reletad
« on: January 20, 2010, 03:21:23 AM »
I was going thru my error log on my forum and I noticed few errors related to simpleportal.
All errors point into PortalArticles.template.php .... but then I noticed that all error comes from users who use other that default theme... Are these errors related to custom themes?

Code: [Select]
Undefined variable: PBSPtabContentArray

/Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
line: 41

Code: [Select]
array_unique() [<a href='function.array-unique'>function.array-unique</a>]: The argument should be an array

default/PortalArticles.template.php (portal_above sub template - eval?)
Line: 41

Code: [Select]
Undefined variable: PBSPtabLabelsResultUnique

Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
Line: 41
« Last Edit: January 21, 2010, 04:16:40 PM by nwobhm »

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: Errors theme reletad
« Reply #1 on: January 20, 2010, 11:28:41 AM »
PBSPtabContentArray? I never heard of that variable before. :S

Offline nwobhm

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Errors theme reletad
« Reply #2 on: January 20, 2010, 01:03:41 PM »
I just looked again my error log.... even members using default theme gets those errors :(

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: Errors theme reletad
« Reply #3 on: January 20, 2010, 02:37:50 PM »
Can you turn off template evaluating please? I would like to know which file it is coming from.

I am suspecting it is not SP, but it could be.

Offline nwobhm

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Errors theme reletad
« Reply #4 on: January 20, 2010, 02:59:17 PM »
I can do that, if only I'd know how to :-[

Maybe I should say what I did before I noticed those errors. I removed zcommunity using package manager.... unistall went fine. Then I installed the pmxblog via package manager and that went okay... i got two erros, but I think that's the reason for these errors. pmxblog errors were in subs.php and in managesettings.php

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Errors theme reletad
« Reply #5 on: January 21, 2010, 03:51:34 AM »
You can disable template eval using this mod:

http://custom.simplemachines.org/mods/index.php?mod=2054

Once you disable the template eval, check your error log again and copy the error details here.
And slowly, you come to realize... It's all as it should be...

Offline nwobhm

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Errors theme reletad
« Reply #6 on: January 21, 2010, 01:35:26 PM »
I think that I know the source of those errors. I have installed the pmxblog mod and to browse blogs with simpleportal block, i have custom-php block to browse thru blogs.
That custom-php contains for example this PBSPtabContentArray table or something like that. I need to contact author of that custom-php to solve the problem.

But I do have a question... does simpleportal blog block support pmxblog? I think that it doesn't support pmxblog?

Offline nwobhm

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Errors theme reletad
« Reply #7 on: January 21, 2010, 02:37:59 PM »
One more question :-[
Does this custom-php have anything in conflict with portalarticles.template.php because I get these errors
Code: [Select]
Invalid argument supplied for foreach()
File: /home/np28842/domains/nakkikioski.net/public_html/Themes/default/PortalArticles.template.php (portal_above sub template - eval?)
line: 53


Code: [Select]
<?php
require('PmxBlogSSI.php');
$PBSPtabLabels PmxBlogSSI_Recent(411'PBSPtabLabels');
foreach (
$PBSPtabLabels as $PBSPtabLabelsValue) {
    foreach (
$PBSPtabLabelsValue as $PBSPtabLabelsKey => $PBSPtabLabelsResult) {
        if (
$PBSPtabLabelsKey == "ownerhref") {
            
$PBSPtabLabelsResultUnique[] = strip_tags($PBSPtabLabelsResult);
        }
    }
}
ob_start();
    
PmxBlogSSI_Recent(411'echo');
    
$PBSPtabRoll ob_get_contents();
ob_end_clean();
echo 
"
<!-- Dependencies -->
<!-- Sam Skin CSS for TabView -->
<!--<link rel='stylesheet' type='text/css' href='http://yui.yahooapis.com/2.8.0r4/build/tabview/assets/skins/sam/tabview.css'>-->

<style>
.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{border:0;height:0;width:0;padding:0;position:absolute;left:-999999px;overflow:hidden;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #A2B5CD;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(../Themes/default/images/theme/caps.png) repeat-x left -160px;border:solid #A2B5CD;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #A2B5CD;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(../Themes/default/images/theme/caps.png) repeat-x left -200px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:#bfdaff url(../Themes/default/images/theme/caps.png) repeat-x left -240px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#A2B5CD;}.yui-skin-sam .yui-navset .yui-content{background:#F0F4F7;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #A2B5CD;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;}
.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;}
</style>

<!-- JavaScript Dependencies for Tabview: -->
<script type='text/javascript' src='http://yui.yahooapis.com/2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js'></script>
<script type='text/javascript' src='http://yui.yahooapis.com/2.8.0r4/build/element/element-min.js'></script>

<!-- OPTIONAL: Connection (required for dynamic loading of data) -->
<script type='text/javascript' src='http://yui.yahooapis.com/2.8.0r4/build/connection/connection-min.js'></script>

<!-- Source file for TabView -->
<script type='text/javascript' src='http://yui.yahooapis.com/2.8.0r4/build/tabview/tabview-min.js'></script>

<body class='yui-skin-sam'>
<div id='memBlogsContainer'>
<div id='memBlogs' class='yui-navset'>
    <ul class='yui-nav'>
        <li class='selected'><a href='#mbTab0'><em>Blog Roll</em></a></li>
"
;
        foreach (
array_unique($PBSPtabLabelsResultUnique) as $PBSPtabLabelsTxt) {
            echo 
"<li><a href='#mbTab'><em>$PBSPtabLabelsTxt</em></a></li>";
            
ob_start();
                
PmxBlogSSI_ShowArticles($PBSPtabLabelsTxt0002'echo');
                
$PBSPtabContentArray[] = ob_get_contents();
            
ob_end_clean();
        }
echo 
"
    </ul>
    <div class='yui-content' style='height:200px;overflow-y:auto;'>
        <div id='mbTab'><p>
$PBSPtabRoll</p></div>
"
;
        foreach (
$PBSPtabContentArray as $key => $PBSPtabContent) {
            echo 
"<div id='mbTab'><p>$PBSPtabContent</p></div>";
        }
echo 
"
    </div>
</div>
</div>

<script type='text/javascript'>
    var tabView = new YAHOO.widget.TabView('memBlogs');
</script>
"
;
?>

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Errors theme reletad
« Reply #8 on: January 21, 2010, 03:26:03 PM »
This should get rid of the errors:

Code: (Find) [Select]
require('PmxBlogSSI.php');
Code: (Replace) [Select]
require('PmxBlogSSI.php');
$PBSPtabLabelsResultUnique = $PBSPtabContentArray = array();
And slowly, you come to realize... It's all as it should be...

Offline nwobhm

  • Semi Newbie
  • *
  • Posts: 15
  • Gender: Male
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: Errors theme reletad
« Reply #9 on: January 21, 2010, 04:16:26 PM »
Thanks! It worked :)