11
dreamgear
Re: "This is your first time to enter the administration section." loop
  • 2005/1/4 22:04

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


Yes, that is exactly what is in the log file on my home system. But now for some reason I'm no longer getting that error on that system, although the problem remains.

I checked the permissions on both systems.. they're correct.

The firewall shouldn't be messing with http-referrer. Just in case, I turned off the squid cache. No change.

The production system isn't logging any errors either.

What exactly is XOOPS checking to see if this is the first time I've used the admin menus ?



12
dreamgear
"This is your first time to enter the administration section." loop
  • 2005/1/4 16:49

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


Pardon me if I'm in a bit of a panic.

Last week on my test system here at home, my XOOPS installation (2.7.3) got into a state where I get the box that says "This is your first time to enter the administration section. Press the button below to proceed.", and then loops there. If you hit cancel you go back to the start page, if you hit submit it loops". If you go back to the start page and click on the administration menu you go to the loop.

This seemed pretty strange since I'm behind a rather tight firewall and noone else has any access to this system. So figuring I must have messed something up, I removed completely and reinstalled xoops. I immediately had the same problem.
Hmm.

So no for the panic. Today I logged in as admin on one of my production sites and just tried to switch a couple of blocks on and off. At first it said the database update succeeded but there was no apparent effect (no caching). So then I edited one of the blocks, set the visibility there and submitted. I got an error number (didn't record it). I got into preferences and turned php debug on (come to think of it I did this on my home system too I think). Then I found myself in the exact same loop as I had on my home system. No php debug in effect, and the site seems to work other than that administration is inaccessible.

One more thing.. my my home system I found this in the error log:

[client 192.168.65.104] PHP Warning: main(XOOPS_ROOT_PATH/class/xoopsblock.php): failed to open stream: No such file or directory in /var/www/html/xoops/header.php on line 28
[client 192.168.65.104] PHP Warning: main(): Failed opening 'XOOPS_ROOT_PATH/class/xoopsblock.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php/ERW:/usr/share/php/Smarty') in /var/www/html/xoops/header.php on line 28
[client 192.168.65.104] PHP Warning: main(XOOPS_ROOT_PATH/class/template.php): failed to open stream: No such file or directory in /var/www/html/xoops/header.php on line 62
[client 192.168.65.104] PHP Fatal error: main(): Failed opening required 'XOOPS_ROOT_PATH/class/template.php' (include_path='.:/usr/share/php:/usr/share/php/ERW:/usr/share/php/Smarty') in /var/www/html/xoops/header.php on line 62

All the paths seem correct.

Please help. Thanks.



13
dreamgear
Re:Getting content from MS-Word into xoops... via html or pdf ?
  • 2004/11/17 22:30

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


The import word functionality in WF-Sections depends on the server running Windows & Word. It does it through a COM object. Pretty cool.. but I use Linux hosting.

Anyway, I've modified the WF-Section module to display PDFs in iframes. Check the wf-projects.com forums for a pointer. I submited it here as a download but it was silently rejected.



14
dreamgear
Re: get empty page when trying to register
  • 2004/11/16 1:32

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


Never mind.. I broke them theme a month or two back.

Doh.



15
dreamgear
get empty page when trying to register
  • 2004/11/16 1:19

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


I have a site that is currently running V2.0.5 that I can no longer register users on. I don't know how long it's been like this.. I just noticed it. (gee now I know why noone's been registering )

When you click the register link or go to register.php you get the left blocks with the menu and login block but no registration form.

If you go to user.php you get the same behavior.. no login form in the center content area. Hope this is a hint.

I turned on php debugging and got only these notices (below)

Can anyone suggest what to check next ?

Notice [PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 17
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 23
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 71
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 77
Notice 
[PHP]: Undefined variablefile_path in file class/smarty/plugins/resource.db.php line 96
Notice 
[PHP]: Undefined indexlang_rememberme in file templates_c/db%3Asystem_block_login.html line 7
Notice 
[PHP]: Undefined indexsslloginlink in file templates_c/db%3Asystem_block_login.html line 10
Notice 
[PHP]: Undefined indexxoops_lblocks in file class/smarty/Smarty.class.php line 626
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 17
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 23
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 71
Notice 
[PHP]: Undefined indexdefault_theme in file class/smarty/plugins/resource.db.php line 77
Notice 
[PHP]: Undefined variablefile_path in file class/smarty/plugins/resource.db.php line 96
Notice 
[PHP]: Undefined indexxoops_module_header in file templates_c/up2_green^theme.html line 36



16
dreamgear
Re: Getting content from MS-Word into xoops... via html or pdf ?
  • 2004/10/27 21:09

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


bump.

I would value even the kind of reply that says "yeah it's a problem for me too and I can't find a solution" or any perspectives whatever.

Thanks...



17
dreamgear
Getting content from MS-Word into xoops... via html or pdf ?
  • 2004/10/20 3:40

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


One of my customers produces a lot of newsletter-type documents in MS word. Nothing is likely to pry him away from it, just like 99% of computer users.

Due to the frustration I've experienced trying to get MS word files into WF-Sections, I'm thinking about putting them up as PDF files.

Can any XOOPS module handle PDF files now ?

I've found that Open Office can produce better HTML than any MS product from MS files, but it still fixes the widths in pixels. My customers can't count on people having more than 800 pixel wide screens, so that looks bad. If only OO could do a "liquifiled" html format.

But, I find OO can also do pretty good PDFs, so that's where I'm at.

Open to any suggestions.



18
dreamgear
Re: is it simple to make a page, stored within xoops, search a database??
  • 2004/9/21 13:37

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


I've written a custom module that takes a table that is stored within the XOOPS database but which has no admin interface, and formats it.

I update it by downloading a .csv file from another site and then using MS access push it back to the server via the mysql-odbc driver.

The module is fairly simple.

The index.php just does this:

<?php
require('header.php');

include_once 
XOOPS_ROOT_PATH."/modules/bslist/class/class.bslist.php";

// We must always set our main template before including the header
$xoopsOption['template_main'] = 'bslist_simple.html';

$bs_array BsList::get_bs();
$bs_count count($bs_array);

// Include the page header
require(XOOPS_ROOT_PATH.'/header.php');

$xoopsTpl->assign('bs_count'$bs_count);
$xoopsTpl->assign('bs_array'$bs_array);

// Include the page footer
require(XOOPS_ROOT_PATH.'/footer.php');
?>


The two class files look like this:

::::::::::::::
class/class.bslist.php
::::::::::::::
<?php

include_once "class.bsmember.php";

class 
BsList extends BsMember
{
    function 
get_bs($limit=0$start=0)
    {
        
$db =& Database::getInstance();
        
$ret = array();
        
$sql "SELECT * FROM ".$db->prefix("bslist");
        
$sql .= " ORDER BY LastName";
        
$result $db->query($sql,intval($limit),intval($start));
        while ( 
$myrow $db->fetchArray($result) ) {
            
$ret[] = new BsMember($myrow);
        }
        return 
$ret;
    }
}
?>
::::::::::::::
class/class.bsmember.php
::::::::::::::
<?PHP

class BsMember
{
    var 
$MemberNumber;
    var 
$LastName;
    var 
$FirstName;
    var 
$Nickname;
    var 
$SpouseFirst;
    var 
$Address1;
    var 
$Address2;
    var 
$Address3;
    var 
$City;
    var 
$State;
    var 
$ZipPC;
    var 
$Country;
    var 
$Email;
    var 
$Type;
    var 
$SocietyExpiration;
    var 
$ChapterExpiration;
    var 
$HomePhone;
    var 
$WorkPhone;
    var 
$Fax;
    var 
$YearsOfService;
    var 
$BirthDate;
    var 
$MenOfNote;

    function 
BsMember ($ary)
    {
        
$this->LastName $ary["LastName"];
        
$this->FirstName $ary["FirstName"];
        
$this->HomePhone $ary["HomePhone"];
        
$this->WorkPhone $ary["WorkPhone"];
        
$this->Email $ary["Email"];

        if (
$this->HomePhone == "0--0"$this->HomePhone "";
        if (
$this->WorkPhone == "0--0"$this->WorkPhone "";
    }
}


and the template looks like this:

<style>
.
bslist td padding2px 1ex 2px 1ex; }
</
style>
<
table class="bslist" llspacing="0" cellpadding="0">
<
tr class="head">
<
td>Name</td>
<
td>Home Phone</td>
<
td>Work Phone</td>
<
td>Email</td>
</
tr>
<{
section name=bs_mem loop=$bs_array}>
<
tr class='<{cycle values="even,odd"}>'>
<
td><{$bs_array[bs_mem]->LastName}>, <{$bs_array[bs_mem]->FirstName}></td>
<
td><{$bs_array[bs_mem]->HomePhone}></td>
<
td><{$bs_array[bs_mem]->WorkPhone}></td>
<{
assign var="email2" value=$bs_array[bs_mem]->Email}>
<
td><{if $email2}><{mailto address=$email2 encode="javascript"}><{/if}></td>
</
tr>
<{/
section}>
</
table>





19
dreamgear
Re: Multiple Headline Blocks
  • 2004/9/6 14:42

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


Ditto.

I would like the same thing. I've seen XOOPS sites that do this but I don't think any of them have cared to share their modules with us yet.




20
dreamgear
Re: big problem : session + PHPSESSID
  • 2004/8/28 15:36

  • dreamgear

  • Friend of XOOPS

  • Posts: 78

  • Since: 2002/7/18


I got started down this path for a different reason. I would know enough to not send someone a PHPSESSIONID string.

I'm trying to validate my page with the W3C XHTML 1.0 validator. And it barfs on the unescaped ampersand before the PHPSESSIONID string. Can this be fixed, and if so how ?


Secondly, why does the use of custom sessions require putting the session id in the URL strings ? Why couldn't they be put in cookies like any other session ?




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



Login

Who's Online

221 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

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

Latest GitHub Commits