Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error: Page Title Required


patterson32

Recommended Posts

Posted

I am having nightmares trying to get the page manager to update. I have had some issues because I created a new page using page manager but I wanted to change the page to be specific, ie photos.php instead of .../info_pages.php?pages_id=34. So I did the following:

 

I downloaded a random page (via FTP) called aboutus.php and changed line 42 from (p.page_type = 3"); to ((p.page_type = 34"); to point to the new page and line 52 from $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUTUS)); to $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PHOTOS));

 

I uploaded the file and have tried to modify the file in page manager and it is not updating. It produces an error: page title required. The page title is there. This now happens on every single page in page manager. Not one page will update!

 

I fear it might be a database problem. Any help would be greatly appreciated.

Posted

Anyone please? I'm desperate to update my site. I don't know why this has happened and I am enthusiastic to learn why.

Posted
I downloaded a random page (via FTP) called aboutus.php and changed line 42 from (p.page_type = 3"); to ((p.page_type = 34"); to point to the new page and line 52 from $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUTUS)); to $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PHOTOS));

 

And the define FILENAME_PHOTOS is existing? I think it doesn't!

 

Grtz,

 

Arjan Gelderblom

I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.

-- Stephen Hawking

Posted
And the define FILENAME_PHOTOS is existing? I think it doesn't!

 

Grtz,

 

Arjan Gelderblom

 

Thanks for replying.

 

No the file doesn't exist. I just inserted it over the ABOUT_US FILENAME and changed the name of the actual file from about_us.php to photos.php.

 

The main problem now is that I simply can't update ANY page on my page manager. I get the Error: Page Title Required. The titles are there though!

Posted
Thanks for replying.

 

No the file doesn't exist. I just inserted it over the ABOUT_US FILENAME and changed the name of the actual file from about_us.php to photos.php.

 

The main problem now is that I simply can't update ANY page on my page manager. I get the Error: Page Title Required. The titles are there though!

 

The FILENAME_ABOUTUS is a defined variable holding the actual filename of the aboutus file aboutus.php, but if you did not define a variable with DEFINE('FILENAME_PHOTOS', photos.php) this function

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PHOTOS));

would probably fail and cause the problem!

 

This would also effect the page manager because of the same code...

 

If you would simple check it replace:

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PHOTOS));

with:

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUTUS));

 

Now if this works go into

includes/filenames.php

and (not sure if this one exists):

includes/admin/filenames.php

 

Find the line that has something like:

DEFINE('FILENAME_ABOUTUS', aboutus.php)

And add below that one

DEFINE('FILENAME_PHOTOS', photos.php)

 

And change line 52 back to:

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PHOTOS));

 

Hope this helps!

Grtz,

 

Arjan Gelderblom

I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.

-- Stephen Hawking

Posted
The FILENAME_ABOUTUS is a defined variable holding the actual filename of the aboutus file aboutus.php, but if you did not define a variable with DEFINE('FILENAME_PHOTOS', photos.php) this function
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PHOTOS));

would probably fail and cause the problem!

 

This would also effect the page manager because of the same code...

 

If you would simple check it replace:

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PHOTOS));

with:

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUTUS));

 

Now if this works go into

includes/filenames.php

and (not sure if this one exists):

includes/admin/filenames.php

 

Find the line that has something like:

DEFINE('FILENAME_ABOUTUS', aboutus.php)

And add below that one

DEFINE('FILENAME_PHOTOS', photos.php)

 

And change line 52 back to:

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_PHOTOS));

 

Hope this helps!

Grtz,

 

Arjan Gelderblom

Thanks very much Bloged for kindly taking the time to help me. :)

 

I have followed your steps throughout and still cannot update the page manager. The error keeps appearing. I have even tried to update any page and EVERY page results in the same error. I am pretty concerned now because I input your advice and it's still not working.

 

Do you think I should copy the tables over from my other (identical) website's d'base and try to repair it this way? I don't know how else to fix this problem.

 

Once again, thanks for you assistance.

Posted

I have just realised that earlier today I deleted a file 069309pagemanger.php (this is not the exact prefix) and it may have something to do with the site not working. I have a host which requires RegisterGlobals to be switched off (I think). Maybe this is something that is causing the problem now?

Posted

Problem solved. There was an additional field in my page_manager file. I have deleted it and it works now. Thanks to Bloged for the help :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...