1
carnuke
some URLs insert www. and break my links... not Zend problem
  • 2004/12/27 12:13

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Just recently some links in my nave bar on home page have started inserting www. in URL this returns a blank page with the following debug info:

Fatal error: Call to a member function on a non-object in /home/something/public_html/header.php on line 114

It looked like a zend non-update problem after updates to PHP 4.3.10 re. the recent worm problems. however php version shows the following

"This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by Zend Technologies with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend Technologies "

Any ideas how to resolve this?

Thank-you.

2
Mithrandir
Re: some URLs insert www. and break my links... not Zend problem

what does your header.php line 110-120 look like?

3
Mithrandir
Re: some URLs insert www. and break my links... not Zend problem

ooooh - the problem is not the fatal error, but the fact that www links added to the main menu lead to a page with fatal errors?

How do you build that nav bar?

4
carnuke
Re: some URLs insert www. and break my links... not Zend problem
  • 2004/12/27 12:46

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Mith:
header.php ~110-120

} else {
                
$xoopsTpl->assign(array('xoops_isuser' => false'xoops_isadmin' => false));
                if (isset(
$xoopsModule)) {
                        
// set page title
                        
$xoopsTpl->assign('xoops_pagetitle'$xoopsModule->getVar('name'));
                        if (
preg_match("/index.php$/i"xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) {
                                
$block_arr =& $xoopsblock->getAllByGroupModule(XOOPS_GROUP_ANONYMOUS$xoopsModule->getVar('mid'), trueXOOPS_BLOCK_VISIBLE);
                        } else {
                                
$block_arr =& $xoopsblock->getAllByGroupModule(XOOPS_GROUP_ANONYMOUS$xoopsModule->getVar('mid'), falseXOOPS_BLOCK_VISIBLE);
                        }
                } else {


nave bar code:

<map name="FPMap1">
<
area href="http://houseofstrauss.co.uk/" coords="4, 1, 29, 15" shape="rect" title="Home page">
<
area href="http://houseofstrauss.co.uk/modules/liaise/" coords="31, 0, 76, 15" shape="rect" title="Contact us">
<
area href="http://houseofstrauss.co.uk/modules/my-mod-1" coords="76, 0, 108, 15" shape="rect" title="Site admin">
<
area href="http://houseofstrauss.co.uk/modules/my-mod-1/sitemap.php" shape="rect" coords="110, 1, 151, 15" title="Site map">
<
area href="http://houseofstrauss.co.uk/modules/wfsection/" shape="rect" coords="152, 1, 199, 15" title="Articles">
<
area href="http://houseofstrauss.co.uk/modules/soapbox" coords="204, 2, 244, 14" shape="rect" title="Reviews">
<
area href="http://houseofstrauss.co.uk/modules/wordbook" shape="rect" coords="246, 1, 296, 15" title="Glossary">
<
area href="http://houseofstrauss.co.uk/modules/mylinks" shape="rect" coords="298, 1, 331, 15" title="Links">
<
area href="http://houseofstrauss.co.uk/modules/news" shape="rect" coords="331, 1, 359, 15" title="News">
<
area href="http://houseofstrauss.co.uk/modules/wordpress" shape="rect" coords="361, 1, 389, 15" title="Journal">
<
area href="http://houseofstrauss.co.uk/modules/newbb" shape="rect" coords="391, 0, 430, 15" title="Discussion forums">
<
area href="http://houseofstrauss.co.uk/admin.php" coords="459, 0, 523, 15" shape="rect" title="Admin section">map><img border="0" src="http://houseofstrauss.co.uk/themes/mp00/files/nav.gif" width="531" height="16" usemap="#FPMap1">


I also tried using <{$xoops_url}> in liew of domain with no change.
BTW this code has worked for several months previous.

5
Mithrandir
Re: some URLs insert www. and break my links... not Zend problem

Can't say I know the answer of that one. Any changes on the server?

6
carnuke
Re: some URLs insert www. and break my links... not Zend problem
  • 2004/12/27 13:58

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Quote:
Can't say I know the answer of that one. Any changes on the server?


Only the upgrades I detailed. Just can't figure it out It should be sooo simple. Surely I dont have to put a redirect in to make my links work??

Should ahve mentioned all these links work fine without the www.

7
m0nty
Re: some URLs insert www. and break my links... not Zend problem
  • 2004/12/27 16:46

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


weird i'd say.. and i can't see any probs either..

u could try adding index.php to the end of the url, so that it points to the file instead of just the folder.. just a thought, you know how weird things get.. lol

8
m0nty
Re: some URLs insert www. and break my links... not Zend problem
  • 2004/12/27 16:55

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


actually just tried that, and that does seem to work..

if i goto your site i see this in the source


site map does work correctly, and i noticed it points to a file instead of just the folder..

i've never come across it before, but it seems that's the cause :)

9
carnuke
Re: some URLs insert www. and break my links... not Zend problem
  • 2004/12/27 17:23

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Bullseye Monty

I just updated all my links to the full address with index.php and bingo!

A resolution, but not a satisfactory conclusion, I mean, why does it not default to the index as it always has done ???

Aaaagh, too much christmas pud. fuddles the brain

Thanks for your help Mith and Monty.

Richard

Login

Who's Online

317 user(s) are online (50 user(s) are browsing Support Forums)


Members: 0


Guests: 317


more...

Donat-O-Meter

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

Latest GitHub Commits