11
turnerrw
Re: Admin Pages, Cache not working
  • 2009/6/30 1:48

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


Good suggestion. However ...

(a) release notes say: Any PHP version >= 4.3 is supported by XOOPS 2.3.3. My server is using 4.3.9

(b) it's the main admin.php page that is returning blank.

(c) the only modules I have installed are News and TinyContent. To my knowledge, neither require PHP 5.

--

That said, it still may be that PHP5 would solve my problems, but the analysis doesn't lead me to PHP5 as a requirement.

I would upgrade the server except that it's running a production site with LOTS of activity and I can't risk the downtime.

--

I've been a XOOPS admin and site builder since 2004. What is baffling here is that ALL of the site modules and pages work with the exception of the admin sections. Moreover, nothing I've tried is giving me any feedback or errors; just blank pages.

When I turned debug_mode on (conf_value = 1) I got some feedback (see earlier post) but it didn't provide any useful information regarding the error.

This server is CentOS. Is there a way to output these php errors to a log file? Other suggestions?



12
turnerrw
Re: Admin Pages, Cache not working
  • 2009/6/29 16:42

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


Here is the output from /admin.php with debug_mode=1
--
None All errors (0) queries (8) blocks (0) extra (2) timers (3)
Errors
Notice: Use of undefined constant E_STRICT - assumed 'E_STRICT' in file /class/logger/render.php line 98
Queries
SET NAMES 'utf8'
SELECT * FROM config WHERE (conf_modid = '0' AND conf_catid = '1') ORDER BY conf_order ASC
SELECT sess_data, sess_ip FROM session WHERE sess_id = '82e3ead0a2baafd24362c509e9ebd53f'
SELECT * FROM users WHERE uid = '1'
SELECT * FROM group_permission WHERE (gperm_name = 'module_admin' AND gperm_modid = '1' AND (gperm_groupid = '1' OR gperm_groupid = '2'))
SELECT * FROM modules WHERE (hasadmin = '1' AND isactive = '1') ORDER BY weight ASC, mid ASC
SELECT * FROM content WHERE parent_id=0 ORDER BY blockid
SELECT catid,title FROM content_cat
Total: 8 queries
Blocks
Total: 0 blocks
Extra
Included files: 48 files
Memory usage: 2168680 bytes
Timers
XOOPS took 0.079 seconds to load.
XOOPS Boot took 0.040 seconds to load.
Module init took 0.039 seconds to load.



13
turnerrw
Re: Admin Pages, Cache not working
  • 2009/6/29 13:50

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


Okay, so let me ask another question.

How can I turn a debug setting on through the database, or manually in one of the scripts so that the admin.php page will tell me something?

here is the source of what I get from admin.php

DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
        <
head>
        <
meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <
meta http-equiv="content-language" content="en" />
        <
title>Web Business SolutionsIncAdministrationtitle>
        <
meta name="author" content="XOOPS" />
        <
meta name="copyright" content="XOOPS © 2001-2009" />
        <
meta name="generator" content="XOOPS" />
        <
link rel="shortcut icon" type="image/ico" href="http://www.example.com/favicon.ico" />

        <
script type="text/javascript" src="http://www.example.com/include/xoops.js">script>
        <
script type="text/javascript">
        function 
xoopsVariableDefined(variable) {
            try { var 
isDefined = (eval(variable) != "undefined") }
            catch(
e) { var isDefined false }
            return 
isDefined;
        }

        function 
xoopsToggleDisplay(id) {
            if (!
xoopsVariableDefined("xoopsToggleLabel")) {
                var 
toggle_innerHTML = new Array("»""«");
            } else {
                var 
toggle_innerHTML xoopsToggleLabel;
            }
            var 
elestyle xoopsGetElementById(id).style;
            var 
label xoopsGetElementById(id+"-label");
            if (
elestyle.display == "none") {
                
elestyle.display "block";
                
label.innerHTML toggle_innerHTML[1];
            } else {
                
elestyle.display "none";
                
label.innerHTML toggle_innerHTML[0];
            }
        }
        script>
<
link rel="stylesheet" type="text/css" media="all" href="http://www.example.com/xoops.css" />
<
link rel="stylesheet" type="text/css" media="all" href="http://www.example.com/modules/system/class/gui/default/css/style.css" />
<
link rel="stylesheet" type="text/css" media="all" href="http://www.example.com/modules/system/class/gui/default/css/en.css" />
<
link rel="stylesheet" type="text/css" media="all" href="http://www.example.com/language/english/style.css" />



14
turnerrw
Re: Admin Pages, Cache not working
  • 2009/6/27 21:03

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


Another symptom ...

Cache files here (/caches/smarty_cache) are not getting updated when the edituser.php form is submitted.

--

If I delete the cached userinfo.php file and then submit the form, a new cache file is created.

If the cache file exists, new info from the database is not updated in the file upon form submit.





15
turnerrw
Re: Admin Pages, Cache not working
  • 2009/6/27 20:55

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


*Cleared the session table
*Ran the checksum.php script - all files present except the install directory which I deleted.

*One of the first things I did was go through the database and look for the old URL and paths and change them to the new ones.

*When I run the the direct link http://www.example.com/modules/system/admin.php?fct=modulesadmin&op=update&module=system

...the admin.php file is returned to the browser as a download (using Firefox).

This is very weird.



16
turnerrw
Re: Admin Pages, Cache not working
  • 2009/6/27 17:52

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


ghia wrote:
Quote:

Check your mainfile.php has the correct definitions for the new URL and physical path (and MySQL credentials).


DONE - the main site, front page blocks, liaise and tinycontent modules are working

Quote:

Clear your xoops_data folders (except index.html).


Okay done. these were already empty except for the admin ui file.

Quote:

Update your system and profile module.


How can I do this w/out access to the admin page?

Quote:

Did you have xoops_lib and xoops_data outside the document root?


No they are inside document root. Where is this configuration stored? Should I change this and how?

/admin.php page is still blank.

Thanks for your help.



17
turnerrw
Admin Pages, Cache not working
  • 2009/6/27 16:23

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


I moved a 2.3.3 site from one host to another which also meant changing the URL.

I moved the scripts and content and created a new database. The site is rendering correctly EXCEPT that /admin.php shows a blank page AND changes to my user profile are not displayed correctly.

Profile changes are written to the database, but the cache file is not updated, so the old information is always displayed.

I'm guessing that these two issues are related, but this is my first 2.3.3 site and I'm not sure where to look.

I've opened up permissions to 777 on xoops_data/... xoops_lib and caches.

Any ideas on where to look to solve this?



18
turnerrw
Re: News link doesn't appear for anonymous users on website with www prefix
  • 2007/1/5 0:34

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


I make this mistake every time I add a new block or module to my site. I've been using XOOPS for over 2 years and I still have trouble with this.

Of course, it works when you're logged in as admin, but then you go and show your work to someone else who is an anon user, and they say "hey, I don't see it."

I wish that there was a preferences switch that controlled default permissions for new modules and blocks.



19
turnerrw
Re: Read Markers lost.
  • 2007/1/4 21:35

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


This is a style sheet issue. The theme designer does not have a style for visited links.

http://jclist.com/themes/7dana-jclist/style.css

Something like the following would work;
a:visited {color: #861a24; } -- would turn visited links a red color



20
turnerrw
Re: How to add a new php page
  • 2007/1/4 21:25

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


It's very easy to wrap your pages in XOOPS. Just include the header/footer information around your page content. Files can be referenced just like any other php or html object.


include("../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>



include(XOOPS_ROOT_PATH."/footer.php");
?>




TopTop
« 1 (2) 3 4 5 ... 7 »



Login

Who's Online

162 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits