Blank Admin pages after checking forum [Solved]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Blank Admin pages after checking forum [Solved]

Post by Aureli »

Hi,

After I upgraded to 1.6.6, it worked fine and after a while I could not see the Admin area.  It only shows a blank page but the site is visible.


I have been checking the forum for solutions and I have tried a few things:

Changing $config['debug'] to true did not show anything, still all blank.

I increased the php memory setting in config.php to 32MB and got the message:
Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 4864 bytes) in /home2/wwwsand/public_html/lib/smarty/Smarty.class.php on line 853
Is this a problem of the server's memory limit?  I checked my host and it seems that the memory_limit is set to 16MB.  Should I contact my host and ask to increase it to 32MB?  It says  in their info:"the maximum amount of memory a script may consume 32MB"

I have read in a post that admin pages are rendered from the Plugin folder but I have not modified anything there.
All I have done is adding modules and modified CompanyDirectory and added FEU for testing.  That's all.  could this have anything to do?

The site still works well in my local machine.

Aureli
Last edited by Aureli on Tue Nov 03, 2009 9:38 am, edited 1 time in total.
alby

Re: Blank Admin pages after checking forum

Post by alby »

Aureli wrote:
Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 4864 bytes) in /home2/wwwsand/public_html/lib/smarty/Smarty.class.php on line 853
Is this a problem of the server's memory limit?  I checked my host and it seems that the memory_limit is set to 16MB.  Should I contact my host and ask to increase it to 32MB?  It says  in their info:"the maximum amount of memory a script may consume 32MB"
You have 25MB (26214400 and not 262144 bytes)
More modules you install more memory is necessary, try to uninstall FEU and ask to your provider to increase to 32MB, you can test from System Information or an php file with phpinfo();

Alby
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Re: Blank Admin pages after checking forum

Post by Aureli »

Hi,

I have run the phpinfo(); and it does say that memory_limit is 16M.  I'll contact my provider and ask them to increase it to 32M.

In the meantime I can't access the admin area to uninstall modules onstalled via the Module Menu,  could I "uninstall" modules by deleting them from the server without breaking other pages ?

A.
alby

Re: Blank Admin pages after checking forum

Post by alby »

Aureli wrote: In the meantime I can't access the admin area to uninstall modules onstalled via the Module Menu,  could I "uninstall" modules by deleting them from the server without breaking other pages ?
Rename folder name but BETTER if you have a sql tools is update [cms_]modules table with 0 in active field for that module (remember of update to 1 after)

Alby
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Re: Blank Admin pages after checking forum

Post by Aureli »

Thanks Alby,

Still not working...

I have changed the Active field to 0 in the cms_modules table and left to 1 the ones they are pre-installed (CMSmailer, FileManager, MenuManager, ModuleManager, News, Printing, Search, Theme Manager, TinyMCE).

If I use the wrong details to log in it does say that details are incorrect, but if they are correct it just shows a blank page.
At least the site is still visible.

I will ask my host to increase the memory_limit to 32 and will update with results.

A.
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Re: Blank Admin pages after checking forum

Post by Aureli »

Well, now I am really stuck!

My host has expanded the memory_limit to 32M
safe_mode if off
I have set to 0 the values in cms_modules table for many modules so they don't use that much memory

I still get the blank page when I log in in the admin area.

I forgot to mention earlier on: Firefox 3.5.3 tries to download the index.php file after login in.  IE is just showing a blank page...

Any other ideas?

A.
Last edited by Aureli on Thu Oct 22, 2009 10:23 pm, edited 1 time in total.
alby

Re: Blank Admin pages after checking forum

Post by alby »

Aureli wrote: Any other ideas?
Always you must check server logs and active debug in config.php

Alby
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Re: Blank Admin pages after checking forum

Post by Aureli »

There are only 2 300 error messages, the second one is pretty similar to what I got earlier on:
[Thu Oct 22 19:17:15 2009] [error] [client 194.125.102.99] File does not exist: /home2/wwwsand/public_html/favicon.ico
[Thu Oct 22 18:07:13 2009] [error] [client 194.125.102.99] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 4864 bytes) in /home2/wwwsand/public_html/lib/smarty/Smarty.class.php on line 864
Line 864 is the following one and I have no idea what it does.

Code: Select all

function register_prefilter($function)

I have activated the debug (i have set it to false again) and it showed  messages in the index page (see below).  The Admin page was still blank.

To me it looks like is not showing anything important but it wouldn't in the front page, is teh admin area that is not shown and there is no debug messages there.

Don't know, do you think a re-install with the basics will help?
Generated in 0.306732 seconds by CMS Made Simple using 59 SQL queries and 7315588 bytes of memory (peak memory usage was 7737408)
Debug: (0.008722) - (629416)

loading smarty

Debug: (0.012845) - (904964)

loading adodb

Debug: (0.014309) - (990336)

loading page functions

Debug: (0.017306) - (1166420)

loading content functions

Debug: (0.020012) - (1365148)

loading pageinfo functions

Debug: (0.020656) - (1398872)

loading translation functions

Debug: (0.021117) - (1417176)

loading events functions

Debug: (0.022393) - (1500680)

loading php4 entity decode functions

Debug: (0.024171) - (1704512)

done loading files

Debug: (0.033942) - (2392488)


(mysql): SELECT sitepref_name, sitepref_value from cms_siteprefs
Error (0):

Debug: (0.037455) - (2502556)


(mysql): SELECT * FROM cms_userplugins
Error (0):

Debug: (0.043399) - (2933016)


(mysql): SELECT * FROM cms_modules WHERE admin_only = 0 AND active = 1 ORDER by module_name
Error (0):

Debug display of 'End of include':(0.067092) - (4381808)
Debug display of 'Load Content Operations':(0.06727) - (4380788)
Debug display of 'End Load Content Operations':(0.075311) - (4916728)
Debug: (0.075703) - (4918620)


(mysql): SELECT content_id FROM cms_content WHERE default_content = 1
Error (0):

Debug: (0.079399) - (4923256)


(mysql): SELECT c.content_id, c.content_name, c.content_alias, c.menu_text, c.titleattribute, c.hierarchy, c.metadata, c.id_hierarchy, c.prop_names, c.create_date AS c_create_date, c.modified_date AS c_date, c.cachable, c.last_modified_by, t.template_id, t.encoding, t.modified_date AS t_date FROM cms_templates t INNER JOIN cms_content c ON c.template_id = t.template_id WHERE (c.content_alias = '51' OR c.content_id = '51') AND c.active = 1
Error (0):

Debug: (0.079731) - (4924864)


(mysql): SELECT MAX(modified_date) AS thedate FROM cms_content c
Error (0):

Debug display of 'Start Loading Hierarchy Manager':(0.080097) - (4925648)
Debug display of 'starting tree':(0.080258) - (4925668)
Debug: (0.082576) - (5062756)

file needs loading

Debug display of 'ending tree':(0.083198) - (5148516)
Debug display of 'End Loading Hierarchy Manager':(0.083245) - (5133980)
Debug: (0.083277) - (5134024)

start findNodeByTag

Debug: (0.08332) - (5134068)

end findNodeByTag

Debug: (0.083623) - (5136652)


(mysql): SELECT * FROM cms_content WHERE content_id = '51'
Error (0):

Debug: (0.085542) - (5271444)

load from data is loading properties

Debug: (0.085588) - (5271800)

load properties called

Debug: (0.086022) - (5274616)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '51'
Error (0):

Debug: (0.109344) - (5414276)


(mysql): SELECT template_id, template_name, template_content, stylesheet, encoding, active, default_template, modified_date FROM cms_templates WHERE template_id = '25'
Error (0):

Debug: (0.122634) - (6089384)


(mysql): SELECT eh.tag_name, eh.module_name, e.originator, e.event_name, eh.handler_order, eh.handler_id, eh.removable FROM cms_event_handlers eh
        INNER JOIN cms_events e ON e.event_id = eh.event_id
        ORDER BY eh.handler_order ASC
Error (0):

Debug display of 'Start of Menu Manager Display':(0.156809) - (6340116)
Debug: (0.157434) - (6343068)


(mysql): SELECT * FROM cms_content WHERE content_id = '52'
Error (0):

Debug: (0.157745) - (6351300)

load from data is loading properties

Debug: (0.157784) - (6351524)

load properties called

Debug: (0.158109) - (6353888)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '52'
Error (0):

Debug: (0.158784) - (6356560)


(mysql): SELECT * FROM cms_content WHERE parent_id = '52' ORDER BY hierarchy
Error (0):

Debug: (0.160469) - (6454948)


(mysql): SELECT * FROM cms_content WHERE content_id = '64'
Error (0):

Debug: (0.160748) - (6464772)

load from data is loading properties

Debug: (0.160793) - (6464804)

load properties called

Debug: (0.161111) - (6466920)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '64'
Error (0):

Debug: (0.161617) - (6470208)


(mysql): SELECT * FROM cms_content WHERE parent_id = '64' ORDER BY hierarchy
Error (0):

Debug: (0.162254) - (6483452)


(mysql): SELECT * FROM cms_content WHERE content_id = '66'
Error (0):

Debug: (0.162547) - (6497708)

load from data is loading properties

Debug: (0.162587) - (6497900)

load properties called

Debug: (0.162875) - (6500384)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '66'
Error (0):

Debug: (0.163618) - (6503204)


(mysql): SELECT * FROM cms_content WHERE parent_id = '66' ORDER BY hierarchy
Error (0):

Debug: (0.16683) - (6732844)


(mysql): SELECT * FROM cms_content WHERE content_id = '78'
Error (0):

Debug: (0.167105) - (6739716)

load from data is loading properties

Debug: (0.167157) - (6739748)

load properties called

Debug: (0.167465) - (6741344)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '78'
Error (0):

Debug: (0.16808) - (6743884)


(mysql): SELECT * FROM cms_content WHERE parent_id = '78' ORDER BY hierarchy
Error (0):

Debug: (0.169773) - (6834252)


(mysql): SELECT * FROM cms_content WHERE content_id = '98'
Error (0):

Debug: (0.170046) - (6844368)

load from data is loading properties

Debug: (0.17009) - (6844368)

load properties called

Debug: (0.170416) - (6846540)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '98'
Error (0):

Debug: (0.170974) - (6848236)


(mysql): SELECT * FROM cms_content WHERE parent_id = '98' ORDER BY hierarchy
Error (0):

Debug: (0.171622) - (6861628)


(mysql): SELECT * FROM cms_content WHERE content_id = '85'
Error (0):

Debug: (0.171901) - (6875976)

load from data is loading properties

Debug: (0.171939) - (6876052)

load properties called

Debug: (0.172276) - (6878624)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '85'
Error (0):

Debug: (0.172984) - (6881628)


(mysql): SELECT * FROM cms_content WHERE parent_id = '85' ORDER BY hierarchy
Error (0):

Debug: (0.175551) - (7056408)


(mysql): SELECT * FROM cms_content WHERE content_id = '96'
Error (0):

Debug: (0.17583) - (7064360)

load from data is loading properties

Debug: (0.17587) - (7064392)

load properties called

Debug: (0.176152) - (7066244)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '96'
Error (0):

Debug: (0.176676) - (7067000)


(mysql): SELECT * FROM cms_content WHERE content_id = '103'
Error (0):

Debug: (0.176947) - (7079212)

load from data is loading properties

Debug: (0.176992) - (7079212)

load properties called

Debug: (0.177308) - (7081396)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '103'
Error (0):

Debug: (0.177736) - (7082532)


(mysql): SELECT * FROM cms_content WHERE content_id = '104'
Error (0):

Debug: (0.178016) - (7094456)

load from data is loading properties

Debug: (0.178053) - (7094456)

load properties called

Debug: (0.178404) - (7096504)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '104'
Error (0):

Debug: (0.178835) - (7099336)


(mysql): SELECT * FROM cms_content WHERE content_id = '107'
Error (0):

Debug: (0.179106) - (7111752)

load from data is loading properties

Debug: (0.17915) - (7111860)

load properties called

Debug: (0.179462) - (7114028)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '107'
Error (0):

Debug: (0.179883) - (7114780)


(mysql): SELECT * FROM cms_content WHERE content_id = '108'
Error (0):

Debug: (0.180144) - (7127376)

load from data is loading properties

Debug: (0.180188) - (7127484)

load properties called

Debug: (0.180506) - (7129820)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '108'
Error (0):

Debug: (0.180943) - (7131088)


(mysql): SELECT * FROM cms_content WHERE content_id = '119'
Error (0):

Debug: (0.181217) - (7144348)

load from data is loading properties

Debug: (0.181261) - (7144512)

load properties called

Debug: (0.181613) - (7146960)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '119'
Error (0):

Debug: (0.182043) - (7151732)


(mysql): SELECT * FROM cms_content WHERE content_id = '120'
Error (0):

Debug: (0.182312) - (7164936)

load from data is loading properties

Debug: (0.18235) - (7165236)

load properties called

Debug: (0.182688) - (7167684)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '120'
Error (0):

Debug: (0.183107) - (7169136)


(mysql): SELECT * FROM cms_content WHERE content_id = '121'
Error (0):

Debug: (0.183386) - (7182172)

load from data is loading properties

Debug: (0.18343) - (7182472)

load properties called

Debug: (0.18379) - (7184920)


(mysql): SELECT * FROM cms_content_props WHERE content_id = '121'
Error (0):

Debug: (0.185464) - (7281276)


(mysql): SELECT content from cms_module_templates WHERE module_name = 'MenuManager' and template_name = 'mainMenu'
Error (0):

Debug: (0.185818) - (7283812)


(mysql): SELECT module_name,template_name,modified_date
                            FROM cms_module_templates
Error (0):

Debug display of 'End of Menu Manager Display':(0.221482) - (7283732)
Debug display of 'Start of Menu Manager Display':(0.222415) - (7283732)
Debug: (0.22251) - (7287200)

start findNodeByTag

Debug: (0.222554) - (7287200)

end findNodeByTag

Debug: (0.22287) - (7287052)


(mysql): SELECT content_id FROM cms_content WHERE hierarchy = '00001'
Error (0):

Debug: (0.222943) - (7287236)

start findNodeByTag

Debug: (0.222985) - (7287236)

end findNodeByTag

Debug display of 'End of Menu Manager Display':(0.223034) - (7287236)
Debug: (0.223203) - (7257024)

start findNodeByTag

Debug: (0.223244) - (7257024)

end findNodeByTag

Debug: (0.230779) - (7266880)


(mysql): SELECT content_id FROM cms_content WHERE content_alias = 'support-groups'
Error (0):

Debug: (0.230855) - (7267196)

start findNodeByTag

Debug: (0.230914) - (7267196)

end findNodeByTag

Debug: (0.231247) - (7267196)


(mysql): SELECT content_id FROM cms_content WHERE content_alias = 'support'
Error (0):

Debug: (0.231318) - (7267388)

start findNodeByTag

Debug: (0.231366) - (7267388)

end findNodeByTag

Debug: (0.231676) - (7267388)


(mysql): SELECT content_id FROM cms_content WHERE content_alias = 'membership'
Error (0):

Debug: (0.231747) - (7267580)

start findNodeByTag

Debug: (0.231934) - (7267580)

end findNodeByTag

Debug: (0.233837) - (7336912)


(mysql): SELECT content_id FROM cms_content WHERE content_alias = 'events'
Error (0):

Debug: (0.23391) - (7337100)

start findNodeByTag

Debug: (0.234109) - (7337236)

end findNodeByTag

Debug: (0.235674) - (7354960)


(mysql):
            SELECT count(mn.news_id) as count
            FROM cms_module_news mn
            LEFT OUTER JOIN cms_module_news_categories mnc
            ON mnc.news_category_id = mn.news_category_id
            LEFT OUTER JOIN cms_users u
            ON u.user_id = mn.author_id
            WHERE
                status = 'published'
            AND
         (mnc.news_category_name = 'General') AND ( IFNULL(start_time, '1969-12-31 19:00:01')  < '2009-10-22 19:16:03')  AND (( IFNULL(end_time, '1969-12-31 19:00:01')  = '1969-12-31 19:00:01') OR (end_time > '2009-10-22 19:16:03'))
Error (0):

Debug: (0.239933) - (7471232)


(mysql):
            SELECT
                mn.*,
                mnc.news_category_name,
                mnc.long_name,
                u.username,
                u.first_name,
                u.last_name
            FROM cms_module_news mn
            LEFT OUTER JOIN cms_module_news_categories mnc
            ON mnc.news_category_id = mn.news_category_id
            LEFT OUTER JOIN cms_users u
            ON u.user_id = mn.author_id
            WHERE
                status = 'published'
            AND
         (mnc.news_category_name = 'General') AND ( IFNULL(start_time, '1969-12-31 19:00:01')  < '2009-10-22 19:16:03')  AND (( IFNULL(end_time, '1969-12-31 19:00:01')  = '1969-12-31 19:00:01') OR (end_time > '2009-10-22 19:16:03')) ORDER BY news_date desc LIMIT 0, 3
Error (0):

Debug: (0.240451) - (7471844)


(mysql): SELECT A.value,B.id,B.name,B.type FROM cms_module_news_fieldvals A, cms_module_news_fielddefs B WHERE A.fielddef_id = B.id AND B.public = 1 AND A.news_id = '16' ORDER BY B.item_order
Error (0):

Debug: (0.242468) - (7485608)


(mysql): SELECT A.value,B.id,B.name,B.type FROM cms_module_news_fieldvals A, cms_module_news_fielddefs B WHERE A.fielddef_id = B.id AND B.public = 1 AND A.news_id = '14' ORDER BY B.item_order
Error (0):

Debug: (0.244421) - (7488076)


(mysql): SELECT A.value,B.id,B.name,B.type FROM cms_module_news_fieldvals A, cms_module_news_fielddefs B WHERE A.fielddef_id = B.id AND B.public = 1 AND A.news_id = '19' ORDER BY B.item_order
Error (0):

Debug: (0.246713) - (7533244)


(mysql): SELECT content from cms_module_templates WHERE module_name = 'News' and template_name = 'summarynewsOnly'
Error (0):

Debug: (0.264622) - (7399684)

start global_content_get_template

Debug: (0.266249) - (7468736)


(mysql): SELECT htmlblob_id, htmlblob_name, html, owner, modified_date FROM cms_htmlblobs WHERE htmlblob_name = 'footer'
Error (0):

Debug: (0.266407) - (7469884)

end global_content_get_template

Debug: (0.266454) - (7469884)

start global_content_get_timestamp

Debug: (0.266496) - (7469884)

end global_content_get_timestamp

Debug display of 'Start of Menu Manager Display':(0.272471) - (7557828)
Debug display of 'End of Menu Manager Display':(0.29699) - (7577424)
Debug: (0.305772) - (7491936)


(mysql): SELECT DISTINCT A.css_id,A.media_type,B.assoc_order
                      FROM cms_css A, cms_css_assoc B
                     WHERE A.css_id = B.assoc_css_id
                       AND B.assoc_type = 'template'
                       AND B.assoc_to_id = '25'
                     ORDER BY B.assoc_order
Error (0):

Debug: (0.306046) - (7450544)

calling module TinyMCE from event ContentPostRender
alby

Re: Blank Admin pages after checking forum

Post by alby »

Aureli wrote: I have activated the debug (i have set it to false again) and it showed  messages in the index page (see below).  The Admin page was still blank.
Sometime you have a blank page because html code is broken
Active debug and look in html "source" of admin page

However bed things with your php memory error, what you have in $config['php_memory_limit'] setting in config.php?

Alby
Last edited by alby on Fri Oct 23, 2009 2:56 pm, edited 1 time in total.
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Re: Blank Admin pages after checking forum

Post by Aureli »

Hi,

I left the $config['php_memory_limit'] empty.  If I put 32MB I get this error:
Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 4864 bytes) in /home2/wwwsand/public_html/lib/smarty/Smarty.class.php on line 853
If I activate debug it the admin page stays blank (after clearing cache and reload) and source shows a blank page too...

A.
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Re: Blank Admin pages after checking forum [solved]

Post by Aureli »

Well,  The problem is fixed but don't ask me how.

The problem started a few days after installing the modules for FEU and CompanyDirectory.  I had them, installed, working and tested and after more than a week of not doing anything I started to get the problem of blank pages once I logged in.

I set the modules to inactive from the database and contacted my provider to extend the memory to 32Mb.

Still had the same problem for nearly 2 weeks more and yesterday, when I was ready to spend some time uninstalling and isntalling the whole thing, started working again.

Since I have tried a few things I'm not sure what has made it work again.

I hope it continues working now!

Thanks for your suggestions, Alby

Aureli
User avatar
lemonaid
Forum Members
Forum Members
Posts: 77
Joined: Mon Sep 22, 2008 7:44 am

Re: Blank Admin pages after checking forum [Solved] NOT SOLVED

Post by lemonaid »

Just bumping this issue in case somebody has discovered a remedy for this.

Have gone through all of the above.

I have two sites that this has happened to.  No obvious reason.

Both sites had not been administered for a few weeks weeks  (that is, no admin login) but when we recently attempted to login we received a blank page on successful login.

Both sites have CTLmodulemaker installed also  FEU

CMSMS version 1.6.5

I'm now living in fear that this will happen to all my CMSMS sites.
Last edited by lemonaid on Fri Mar 26, 2010 7:38 am, edited 1 time in total.
Aureli
Forum Members
Forum Members
Posts: 74
Joined: Wed Aug 06, 2008 10:48 pm

Re: Blank Admin pages after checking forum [Solved]

Post by Aureli »

Hi Lemonaid,

Have you asked your provider to expand the memory limit in the server?

I am not sure what worked for me but I'm sure it was that.  The more modules you use the more resources cmsms will need.

This problem was solved for me and has not happened again.

I hope you get sorted soon.

A.
Post Reply

Return to “CMSMS Core”