| Author |
Message |
mc260377
Beginner


Joined: May 01, 2005
Posts: 7
|
Posted:
Mon 02 May 2005 19:40 |
  |
Hi all,
I'm having a problem getting the NXP whos online block installed. Everything is fine until it gets to here:-
| Quote: |
Checking includes/my_header.php for appropriate code - Line Missing
The include line required in the includes/my_header.php file has not been found. Please add the following line exactly as it is shown below to the includes/my_header.php file and click on RE-CHECK.
Somewhere between the < ?PHP and ? > tag add this:
include_once("includes/my_header_nxp_online.php"); |
The problem is that when I put that line into my_header.php and then recheck the site just freezes and I cant get on my site at all until I remove that line again
Any ideas? |
|
|
  |
 |
BlueLion
Administrator


Joined: Aug 21, 2004
Posts: 2836
|
Posted:
Tue 03 May 2005 1:38 |
  |
The NXP Online block is working with the Nuke Patch 2.9. Did you install that patch?
BL |
|
|
    |
 |
mc260377
Beginner


Joined: May 01, 2005
Posts: 7
|
Posted:
Tue 03 May 2005 2:40 |
  |
Hi BL thanks for the reply.. I'm using Nuke 7.5 so do I need the 2.9 patch and if so where is this available?
Thanks again  |
|
|
  |
 |
mc260377
Beginner


Joined: May 01, 2005
Posts: 7
|
Posted:
Tue 03 May 2005 3:07 |
  |
My bad.... I've downloaded the patch and just backing up my files and will try again after applying.. cheers Mike  |
|
|
  |
 |
BlueLion
Administrator


Joined: Aug 21, 2004
Posts: 2836
|
Posted:
Tue 03 May 2005 8:06 |
  |
The patch 2.9 replaces
[php:1:220fe6c7cf]if(stristr($_SERVER['SCRIPT_NAME'], "block-***.php")) {
header("Location: index.php");
die();
}[/php:1:220fe6c7cf]
with
[php:1:220fe6c7cf]if ( !defined('NUKE_FILE') ) {
Header("Location: index.php");
die();
}[/php:1:220fe6c7cf]
This means the block is requesting the definable NUKE_FILE. This is defined with patch 2.9 in your mainfile.php.
If it is not there patch your Nuke up to this one. Not only because of the NXP Online block, but it will also fix some bugs or improve your files.
After, when you altered your PHP-Nuke the block should work.
BL |
Last edited by BlueLion on Tue 03 May 2005 9:07; edited 1 time in total |
|
    |
 |
mc260377
Beginner


Joined: May 01, 2005
Posts: 7
|
Posted:
Tue 03 May 2005 9:02 |
  |
It worked fine... many thanks for the info
A few problems I have now though is when I goto change the preferences and click on the "update" button it takes me to a page that says "you are not authorised to view this page"
The update button seems to be sending me here:- http://www.mysite.com/html/admin
And is not updating any changes that I have made.
Also language in the drop down boxes dont seem to be getting the define info from the language file although the language files seem to be in the correct place.
Also Step 11 has 2 spelling mistakes and Step 12 has one  |
|
|
  |
 |
BlueLion
Administrator


Joined: Aug 21, 2004
Posts: 2836
|
Posted:
Tue 03 May 2005 9:17 |
  |
Re-check your admin.php. The following should in that file after the PHP open tag <?php
[php:1:5373035a08]define('ADMIN_FILE', true);[/php:1:5373035a08]
BL |
|
|
    |
 |
Lascar
Beginner


Joined: Apr 29, 2005
Posts: 9
|
Posted:
Tue 03 May 2005 17:16 |
  |
Waar kan ik die patch 2.9 downloaden ??
waarom is deze forum in het engels ?? is toch een nederlandse website ??
groetjes lascar |
|
|
  |
 |
Lascar
Beginner


Joined: Apr 29, 2005
Posts: 9
|
Posted:
Tue 03 May 2005 17:19 |
  |
kan het zijn dat nxpinstall een fout bevat ?
ik kom er maar niet uit als ik bij stap 4 terug kom krijg ik hetvolgende te zien
Checking includes/my_header.php for appropriate code - Line Missing
The include line required in the includes/my_header.php file has not been found. Please add the following line exactly as it is shown below to the includes/my_header.php file and click on RE-CHECK.
Somewhere between the < ?PHP and ? > tag add this:
include_once("includes/my_header_nxp_online.php");
als ik dit doe en refresh blokkeerd men beeld |
|
|
  |
 |
Lascar
Beginner


Joined: Apr 29, 2005
Posts: 9
|
Posted:
Tue 03 May 2005 18:17 |
  |
help ik heb dat blok echt nodig
heb intussen alles all die nxp fils verwijderd zodat ik terug opnieuw kan beginnen
bij de 4de of 5de stap van de installatie loopt het telkens fout
| Code: |
Checking includes/my_header.php for appropriate code - Line Missing
The include line required in the includes/my_header.php file has not been found. Please add the following line exactly as it is shown below to the includes/my_header.php file and click on RE-CHECK.
Somewhere between the < ?PHP and ? > tag add this:
include_once("includes/my_header_nxp_online.php"); |
dit krijg ik altijd te zien
vervolgens die ik wat er gevraagd wordt
endan blijft mijn beeld steken
kan iemand me helpen met het installeren van dit block/module
Met vriendelijke groeten, Lascar |
|
|
  |
 |
mc260377
Beginner


Joined: May 01, 2005
Posts: 7
|
Posted:
Tue 03 May 2005 18:32 |
  |
| BlueLion wrote: |
Re-check your admin.php. The following should in that file after the PHP open tag <?php
[php:1:8d9e2f80e9]define('ADMIN_FILE', true);[/php:1:8d9e2f80e9]
BL |
Checked admin.php and that line is already there and in the correct place. |
|
|
  |
 |
anaerobic
Beginner


Joined: May 03, 2005
Posts: 2
|
Posted:
Tue 03 May 2005 19:50 |
  |
helo all. i been using the previous version of the JAG block.. now i updated and my site also freezes...
1. i am using phpnuke platinum 7.6
so does the patch work?
2. where do i apply the patch and all.
can someone please point me to the right direction plz.
i will greatly appretiate that. |
|
|
  |
 |
mc260377
Beginner


Joined: May 01, 2005
Posts: 7
|
Posted:
Tue 03 May 2005 23:26 |
  |
I dont know whether the 2.9 patch is ok with the platinum version but this is where I got the 2.9 patch from for my site and it worked fine although i'm using 7.5 and not the platinum version.
http://www.nukefixes.com/
(look under the PHP-Nuke Patched Series section) |
|
|
  |
 |
BlueLion
Administrator


Joined: Aug 21, 2004
Posts: 2836
|
Posted:
Wed 04 May 2005 2:28 |
  |
|
    |
 |
BlueLion
Administrator


Joined: Aug 21, 2004
Posts: 2836
|
Posted:
Wed 04 May 2005 3:32 |
  |
| mc260377 wrote: |
A few problems I have now though is when I goto change the preferences and click on the "update" button it takes me to a page that says "you are not authorised to view this page"
The update button seems to be sending me here:- http://www.mysite.com/html/admin |
Small bug in the 7.0~7.5 release.
To fix it yourself: Open nxp_online.php in root/admin/modules/ and find:
[php:1:0878bf3f6a] echo " <form name='disen' action='admin' method='post'>\n";[/php:1:0878bf3f6a]
and change to:
[php:1:0878bf3f6a] echo " <form name='disen' action='admin.php' method='post'>\n";[/php:1:0878bf3f6a]
Download will be updated to BETA 3.03a.
BL |
|
|
    |
 |
|
|
| Donaties
| Adverteren
|
|
Wilt u het forum steunen, dan kunt u nu eenvoudig doneren met PayPal.
|
|