SimplePortal

Support => English Support => Topic started by: SamElanius on December 28, 2014, 01:26:48 PM

Title: Problems in : "PortalBlocks.php"
Post by: SamElanius on December 28, 2014, 01:26:48 PM
Hi all,
I am receiving for quite some time hundreds of two types of errors in my SMF installation with SimplePortal when registered user access main page (Portal).
Errors occurs even when I disable all blocks with custom PHP scripts.
I waited for SimplePortal version 2.3.6 hoping it will fix these problems, but unfortunately it did not.
Can someone help me find out whats wrong in my installation please? I tried my best, but unlucky, without any result.
Page itself runs fine and shows everything, but it generate excessive amount of SGL queries when writing to error log, so access to database is slowed down for this reason.
So I need to get rid of these errors.
Server versions:
Custom Theme: Reference 2.0
SMF Verison: 2.0.9
SimplePortal 2.3.6
MySQL: 5.1.73
PHP: 5.5

I disabled template eval in server settings and got this:

h**p://mydomain.cz/index.php?
2: mysql_result() expects parameter 1 to be resource, boolean given
File: /www/mydomain.cz/mydomain.cz/Sources/PortalBlocks.php(3592) : eval()'d code
Line: 73


h**p://mydomain.cz/index.php?
8: Undefined index:
File: /www/mydomain.cz/mydomain.cz/Sources/PortalBlocks.php(3592) : eval()'d code
Line: 62


List of installed addons:
1.     Personal Messages to Membergroups    1.4.2
2.    PDF Tag    1.2    
3.    SMF 2.0.7 Update    1.0    
4.    Membergroup Prefixes    1.1    
5.    SMF 1.1.19 / 2.0.6 Update    1.0    
6.    SMF 2.0.8 Update    1.0    
7.    Menu Editor Lite    1.0.5    
8.    PM Informer    4.0    
9.    SMF 2.0.3 Update    1.0    
10.    Premiumbeat Flash MP3 Player    2.0.1    
11.    Log Karma Actions    2.0    
12.    SMF 2.0.5 Update    1.0    
13.    Add Social Media Icons To Profiles    1.1.0    
14.    Activity in Profile    1.1    
15.    FreiChat    1.0    
15.    SimplePortal    2.3.6    
17.    Karma Buttons    1.1    
18.    Aeva Media    1.4w    
19.    SmfSimple.com - Set Large of Titles And Texts    1.0.1
20.    SMF 2.0.4 Update    1.0
21.    SMF 1.1.20 / 2.0.9 Update    1.0    
22.    Voter Visibility    2.0
Title: Re: Problems in : "PortalBlocks.php"
Post by: Chen Zhen on December 28, 2014, 03:23:35 PM
SamElanius,

I am sorry to hear you are having issues, let us see if we can resolve the problem.
Do you have some sort of custom php block enabled for blogs or articles ?

Regards.
Title: Re: Problems in : "PortalBlocks.php"
Post by: SamElanius on December 29, 2014, 01:27:59 PM
Chen Zhen,
I do have some custom PHP scripts in blocks on main page.
I tried to disable these block but I still get those errors.
Title: Re: Problems in : "PortalBlocks.php"
Post by: ccbtimewiz on February 05, 2015, 08:09:53 PM
Could you disable template evaluation and see what the error points to now?
Title: Re: Problems in : "PortalBlocks.php"
Post by: [SiNaN] on August 01, 2015, 07:46:21 AM
SamElanius, do you still require assistance with this issue?
SimplePortal 2.3.8 © 2008-2024, SimplePortal