Intechnic
Users Developers
Home / Forums / In-Portal CMS / Installation & Upgrade / in-portal and safe_mode / Topic Posts

In-Portal Forum

This is a place for users of In-Portal to ask questions, discuss various topics, and interact with other members of the In-Portal Community. Please report bugs through the Bugs Team (not the Forum). If you are interested in contributing or joining one of the many Teams for In-Portal, please check out the Contribute section of the website.
 

In-Portal Forum

in-portal and safe_mode (8)


Posted: 01/21/2010 2:07:23 AM

Reply Quoted  


Hi!

In-Portal + in-link seems to have 2 problems with PHP and safe_mode.

- At install, the system stop at "Basic configuration" (nothing on screen) and loop in the config. If I switch off safe_mode, I'm able to finish the install process.

- If install is done and I switch on safe_mode again, the system does work at all. I got "Fatal error: Call to a member function GetRow() on a non-object in core/kernel/nparser/template_cache.php on line 192" in front and back office. I got only a white page if debug.php is not activated.

I'm using PHP 5.2.12 in safe_mode.

Any solution?


Posted: 01/21/2010 5:26:51 PM

Reply Quoted  


First of all, thanks a lot for joining In-Portal Community - we are always happy to see new faces!


If you don't mind I'd like to gather a bit more information about your PHP settings. In particular I would need to know your settings (both global i local) for:


safe_mode_exec_dir
safe_mode_gid
safe_mode_include_dir

open_basedir




Thanks!

Posted: 01/22/2010 11:49:42 AM

Reply Quoted  


Hello again,

After thorough check we found a small bug in TemplateCache class.

It's been reported in groups and already fixed (patch attached). New In-Portal 5.0.3 will have it included of course.

Database connection object missing in TemplatesCache class

Thanks for reporting this!


One more thing to note - SAFE_MODE is deprecated since PHP 5.3.0 and will be removed in PHP 6.

http://www.php.net/manual/en/ini.sect.safe-mode.php


Cheers!

Posted: 01/22/2010 1:05:48 PM

Reply Quoted  


Thanks for patch. It correct things. The error message is gone.

But, in /admin many parts don't work (blank page, 404 when I click on some menu option and nothing printed below the nav bar). I've to move the inportal testing site on another server where I can switch on/off safe_mode without disturbing users. I'll let you know later.

Seems that safe_mode cause many problem. Unfortunaly, my production serveur is in safe_mode and I can't change this soon.

The current config is:

Debian Lenny
PHP 5.2.12 CGI version with suphp
register_globals = Off
safe_mode = On
safe_mode_gid = On
safe_mode_exec_dir = on a dedicated dir with ln to autorized bin

I have CMS as Jumbla, CMS Made in Simple or Spip without problem on this config.


Posted: 01/24/2010 3:12:48 AM

Reply Quoted  


Hi!

I made more test with and without safe_mode. I haven't found more specific bug with safe_mode yet except that debug.php doesn't work. It crash and don't print the show debuger windows.

Unfortunaly, I still have problems with /admin.

- the left vertical menu bar is not printed. I had it at my first connection and it disappeared after some click. I tried to clean the firefox cache. No change. I tried with Safari same. I tried with Firefox on Vista, same.

- Browse Mode / Content Mode links in top page disappear too but not all the time.

I stopped there as I can't use the /admin interface.


Safari 4.0.4 on Mac OSX
Firefox 3.5.7 on OSX and Vista



Posted: 01/29/2010 1:02:50 PM

Reply Quoted  


Hello there,


This is quite strange since I have tested my Admin with Safe_mode ON and works except for Debugger (same as yours) since there is a little bug with it.

Briefly about the setup and difference in Safe_mode On and Off:

1. When it's on PHP can't properly read the files or folders are created by user with different UserId or GroupId from the actual Apache process.

Why we need to write to the file system. The whole system is based on templates to automate the code and make our (developers) and users live easier.

Now when with Safe_mode is On we are writing the templates case to the DB directly (Cache table) when it's changed. In other words, we compile the templates one time and recompile if physical template was changed.

2. PHP can save files and created folder under it's /system/cache folder without problem and the rest works the same. We compile templates on a first use and recompile if changed.


To be honest I am not that worrying as much about Debugger as I do about Admin Console not working.

Is there any place I can look at it? Let me know if you want me to email you directly or you can contact us via admin[at]in-portal dot com.


Thanks.





Posted: 12/06/2010 2:41:32 AM

Reply Quoted  


Perhaps you could help me with similar problem (but I don't think it's the same one).

If I disable In-Buletin module http://prntscr.com/19ao5, the site http://www.tempatmakan.biz run smooth.

But if I enable it http://prntscr.com/19ao7, the result when I browse the site will be like this http://prntscr.com/19aog

Could anyone help me how to resolve this issue?
Thanks in advance.

Rgds, Budi

Posted: 12/07/2010 3:31:48 PM

Reply Quoted  


widodobudi wrote:12/06/2010 2:41:32 AM
Perhaps you could help me with similar problem (but I don't think it's the same one).

If I disable In-Buletin module http://prntscr.com/19ao5, the site http://www.tempatmakan.biz run smooth.

But if I enable it http://prntscr.com/19ao7, the result when I browse the site will be like this http://prntscr.com/19aog

Could anyone help me how to resolve this issue?
Thanks in advance.

Rgds, Budi



Hello Budi,


Please let us know if you are still experiencing this issue. It's quite strange that In-Bulletin is causing this type of issues.

What if you try disabling In-Link and enabling In-Bulletin? In other words, let's see if it's possible that there is an issue with amount of resources used by the system when all modules are enabled.



Thanks.