Class 'NarroLink' not found

3 views
Skip to first unread message

zorroh

unread,
Sep 8, 2009, 10:10:36 AM9/8/09
to The Narro Project
Fatal error: Class 'NarroLink' not found in assets/php/_core/
error_page.php on line 141

How to fix this?

Narro 0.9.4 conf is something like this (this is not real data):
define ('__DOCROOT__', '/var/www/html');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__HTTP_URL__', 'http://sub.domain.com');
define ('__SUBDIRECTORY__', '');
define ('__PHP_CLI_PATH__', '/usr/bin/php');
define ('ADMIN_EMAIL_ADDRESS', 'ma...@dot.net');

i use subdomain not subdirectory as you can see from my conf.

AND i also change "define docroot", if i dont change then data
directory chmod 777 error comes up, but i have data directory with
needed permissions

before:
define ('__DOCROOT__', realpath(dirname(__FILE__) . '/var/www/html'));

after:
define ('__DOCROOT__', '/var/www/html');

Alexandru Szasz

unread,
Sep 8, 2009, 11:37:08 AM9/8/09
to narro-...@googlegroups.com
Pe 08.09.2009 17:10, zorroh a scris:
>
> Fatal error: Class 'NarroLink' not found in assets/php/_core/
> error_page.php on line 141

Well, before the NarroLink not found, you must have another error since
you're getting the error in error_page.php.

Are you sure that what you set in __DOCROOT__ is the path where the
subdomain is served ?

These are my values for a subdomain:

define ('__DOCROOT__', '/home/alex/www/html/narro');
define ('__VIRTUAL_DIRECTORY__', '');
define ('__HTTP_URL__', 'http://tradu.softwareliber.ro');
define ('__SUBDIRECTORY__', '');

The webroot is of course in www/html, but the subdomain is hosted in
www/html/narro .

>
> How to fix this?
>
> Narro 0.9.4 conf is something like this (this is not real data):
> define ('__DOCROOT__', '/var/www/html');
> define ('__VIRTUAL_DIRECTORY__', '');
> define ('__HTTP_URL__', 'http://sub.domain.com');
> define ('__SUBDIRECTORY__', '');
> define ('__PHP_CLI_PATH__', '/usr/bin/php');
> define ('ADMIN_EMAIL_ADDRESS', 'ma...@dot.net');
>
> i use subdomain not subdirectory as you can see from my conf.
>
> AND i also change "define docroot", if i dont change then data
> directory chmod 777 error comes up, but i have data directory with
> needed permissions
>
> before:
> define ('__DOCROOT__', realpath(dirname(__FILE__) . '/var/www/html'));
>
> after:
> define ('__DOCROOT__', '/var/www/html');
>
> >


--
Alexandru Szasz

zorroh

unread,
Sep 8, 2009, 3:57:19 PM9/8/09
to The Narro Project
yep there was error about application.inc & narrowuser.class, but i
read from other topic here that i need to replace them, so i download
them and replace.

yes, directory path is right. in my server all domains and subdomains
has similar path.

Example of mydomain.com
/var/sites/clientname/mydomain.com/subdomains/www/html

Example of sub.mydomain.com
/var/sites/clientname/mydomain.com/subdomains/sub/html

so, my path is right.

On 8 sept, 18:37, Alexandru Szasz <alex...@gmail.com> wrote:
> Pe 08.09.2009 17:10, zorroh a scris:
>
>
>
> > Fatal error: Class 'NarroLink' not found in assets/php/_core/
> > error_page.php on line 141
>
> Well, before the NarroLink not found, you must have another error since
> you're getting the error in error_page.php.
>
> Are you sure that what you set in __DOCROOT__ is the path where the
> subdomain is served ?
>
> These are my values for a subdomain:
>
> define ('__DOCROOT__', '/home/alex/www/html/narro');
> define ('__VIRTUAL_DIRECTORY__', '');
> define ('__HTTP_URL__', 'http://tradu.softwareliber.ro');
> define ('__SUBDIRECTORY__', '');
>
> The webroot is of course in www/html, but the subdomain is hosted in
> www/html/narro .
>
>
>
>
>
> > How to fix this?
>
> > Narro 0.9.4 conf is something like this (this is not real data):
> > define ('__DOCROOT__', '/var/www/html');
> >      define ('__VIRTUAL_DIRECTORY__', '');
> >      define ('__HTTP_URL__', 'http://sub.domain.com');
> >      define ('__SUBDIRECTORY__', '');
> >      define ('__PHP_CLI_PATH__', '/usr/bin/php');
> >      define ('ADMIN_EMAIL_ADDRESS', 'm...@dot.net');

zorroh

unread,
Sep 8, 2009, 4:03:05 PM9/8/09
to The Narro Project
before error was another error about application.inc &
narrowuser.class, so i replace them with trunk version, because in
other topic here was suggestion to do this.

directory path is right, in my post was just example directory path.

On 8 sept, 18:37, Alexandru Szasz <alex...@gmail.com> wrote:
> Pe 08.09.2009 17:10, zorroh a scris:
>
>
>
> > Fatal error: Class 'NarroLink' not found in assets/php/_core/
> > error_page.php on line 141
>
> Well, before the NarroLink not found, you must have another error since
> you're getting the error in error_page.php.
>
> Are you sure that what you set in __DOCROOT__ is the path where the
> subdomain is served ?
>
> These are my values for a subdomain:
>
> define ('__DOCROOT__', '/home/alex/www/html/narro');
> define ('__VIRTUAL_DIRECTORY__', '');
> define ('__HTTP_URL__', 'http://tradu.softwareliber.ro');
> define ('__SUBDIRECTORY__', '');
>
> The webroot is of course in www/html, but the subdomain is hosted in
> www/html/narro .
>
>
>
>
>
> > How to fix this?
>
> > Narro 0.9.4 conf is something like this (this is not real data):
> > define ('__DOCROOT__', '/var/www/html');
> >      define ('__VIRTUAL_DIRECTORY__', '');
> >      define ('__HTTP_URL__', 'http://sub.domain.com');
> >      define ('__SUBDIRECTORY__', '');
> >      define ('__PHP_CLI_PATH__', '/usr/bin/php');
> >      define ('ADMIN_EMAIL_ADDRESS', 'm...@dot.net');

Alexandru Szasz

unread,
Sep 8, 2009, 4:44:01 PM9/8/09
to narro-...@googlegroups.com
Pe 08.09.2009 22:57, zorroh a scris:
>
> yep there was error about application.inc& narrowuser.class, but i
> read from other topic here that i need to replace them, so i download
> them and replace.
>
> yes, directory path is right. in my server all domains and subdomains
> has similar path.
>
> Example of mydomain.com
> /var/sites/clientname/mydomain.com/subdomains/www/html
>
> Example of sub.mydomain.com
> /var/sites/clientname/mydomain.com/subdomains/sub/html
>
> so, my path is right.

Edit assets/php/_core/error_page.php
and replace

if ($_SERVER['HTTP_HOST'] != 'localhost' &&
NarroApp::HasPermission('Administrator')) {

with

if (0 && $_SERVER['HTTP_HOST'] != 'localhost' &&
!NarroApp::HasPermission('Administrator')) {

so that the condition fails and instead of sending an email you actually
see the error on screen.
--
Alexandru Szasz

zorroh

unread,
Sep 8, 2009, 5:13:40 PM9/8/09
to The Narro Project
wow! next errors..

Session must be started before any output has been sent to the
browser; output started in /var/www/sites/mydomain.com/subdomains/sub/
html/includes/configuration.inc.php/99
Username:
Email:
Exception Type: Zend_Session_Exception

Rendered Page: Click here to view contents able to be rendered
//--- i add here render page error:
Warning: Cannot modify header information - headers already sent by
(output started at /var/www/sites/mydomain.com/subdomains/sub/html/
includes/configuration.inc.php:99) in /var/www/sites/mydomain.com/
subdomains/sub/html/includes/qcodo/_core/qcodo.inc.php on line 57
---//

Source File: /var/www/sites/mydomain.com/subdomains/sub/html/
includes/Zend/Session.php Line: 419

Line 414: }
Line 415:
Line 416: if (!self::$_unitTestEnabled && headers_sent
($filename, $linenum)) {
Line 417: /** @see Zend_Session_Exception */
Line 418: require_once 'Zend/Session/Exception.php';
Line 419: throw new Zend_Session_Exception("Session
must be started before any output has been sent to the browser;"
Line 420: . " output started in {$filename}/
{$linenum}");
Line 421: }
Line 422:
Line 423: // See http://www.php.net/manual/en/ref.session.php
for explanation
Line 424: if (!self::$_unitTestEnabled && defined('SID')) {


Call Stack:

#0 /var/www/sites/mydomain.com/subdomains/sub/html/includes/Zend/
Session/Namespace.php(124): Zend_Session::start(true)
#1 /var/www/sites/mydomain.com/subdomains/sub/html/includes/
application.inc.php(182): Zend_Session_Namespace->__construct('Narro')
#2 /var/www/sites/mydomain.com/subdomains/sub/html/includes/
prepend.inc.php(96): require_once('/var/www/sites/...')
#3 /var/www/sites/mydomain.com/subdomains/sub/html/
narro_project_list.php(19): require_once('/var/www/sites/...')
#4 {main}

Alexandru Szasz

unread,
Sep 9, 2009, 3:25:08 AM9/9/09
to narro-...@googlegroups.com
Pe 09.09.2009 00:13, zorroh a scris:
>
> wow! next errors..
>
> Session must be started before any output has been sent to the
> browser; output started in /var/www/sites/mydomain.com/subdomains/sub/
> html/includes/configuration.inc.php/99
> Username:
> Email:
> Exception Type: Zend_Session_Exception

In file includes/qcodo/_core/qcodo.inc.php add // at the beginning of
line 57 to comment it out.

>
> Rendered Page: Click here to view contents able to be rendered
> //--- i add here render page error:
> Warning: Cannot modify header information - headers already sent by
> (output started at /var/www/sites/mydomain.com/subdomains/sub/html/
> includes/configuration.inc.php:99) in /var/www/sites/mydomain.com/
> subdomains/sub/html/includes/qcodo/_core/qcodo.inc.php on line 57
> ---//
>
> Source File: /var/www/sites/mydomain.com/subdomains/sub/html/
> includes/Zend/Session.php Line: 419
>
> Line 414: }
> Line 415:
> Line 416: if (!self::$_unitTestEnabled&& headers_sent
> ($filename, $linenum)) {
> Line 417: /** @see Zend_Session_Exception */
> Line 418: require_once 'Zend/Session/Exception.php';
> Line 419: throw new Zend_Session_Exception("Session
> must be started before any output has been sent to the browser;"
> Line 420: . " output started in {$filename}/
> {$linenum}");
> Line 421: }
> Line 422:
> Line 423: // See http://www.php.net/manual/en/ref.session.php
> for explanation
> Line 424: if (!self::$_unitTestEnabled&& defined('SID')) {
>> if (0&& $_SERVER['HTTP_HOST'] != 'localhost'&&
--
Alexandru Szasz

zorroh

unread,
Sep 9, 2009, 3:48:09 AM9/9/09
to The Narro Project
another error:
Session must be started before any output has been sent to the
browser; output started in /var/www/sites/mydomain.com/subdomains/sub/
html/includes/configuration.inc.php/99
Username:
Email:
Exception Type: Zend_Session_Exception

Source File: /var/www/sites/mydomain.com/subdomains/sub/html/
includes/Zend/Session.php Line: 419

Line 414: }
Line 415:
Line 416: if (!self::$_unitTestEnabled && headers_sent
($filename, $linenum)) {
Line 417: /** @see Zend_Session_Exception */
Line 418: require_once 'Zend/Session/Exception.php';
Line 419: throw new Zend_Session_Exception("Session
must be started before any output has been sent to the browser;"
Line 420: . " output started in {$filename}/
{$linenum}");
Line 421: }
Line 422:
Line 423: // See http://www.php.net/manual/en/ref.session.php
for explanation
Line 424: if (!self::$_unitTestEnabled && defined('SID')) {


Call Stack:

#0 /var/www/sites/mydomain.com/subdomains/sub/html/includes/Zend/
Session/Namespace.php(124): Zend_Session::start(true)
#1 /var/www/sites/mydomain.com/subdomains/sub/html/includes/
application.inc.php(182): Zend_Session_Namespace->__construct('Narro')
#2 /var/www/sites/mydomain.com/subdomains/sub/html/includes/
prepend.inc.php(96): require_once('/var/www/sites/...')
#3 /var/www/sites/mydomain.com/subdomains/sub/html/
narro_project_list.php(19): require_once('/var/www/sites/...')
#4 {main}



> > Line 423:            // Seehttp://www.php.net/manual/en/ref.session.php

Alexandru Szasz

unread,
Sep 9, 2009, 4:13:56 AM9/9/09
to narro-...@googlegroups.com
Pe 09.09.2009 10:48, zorroh a scris:
>
> another error:
> Session must be started before any output has been sent to the
> browser; output started in /var/www/sites/mydomain.com/subdomains/sub/
> html/includes/configuration.inc.php/99

What do you have in configuration.inc.php at line 99 ?
Make sure that in that file there is no space before <? at the begining
of the file and you can also delete the ?> at the end if it's present.


> Username:
> Email:
> Exception Type: Zend_Session_Exception
>
> Source File: /var/www/sites/mydomain.com/subdomains/sub/html/
> includes/Zend/Session.php Line: 419
>
> Line 414: }
> Line 415:
> Line 416: if (!self::$_unitTestEnabled&& headers_sent
> ($filename, $linenum)) {
> Line 417: /** @see Zend_Session_Exception */
> Line 418: require_once 'Zend/Session/Exception.php';
> Line 419: throw new Zend_Session_Exception("Session
> must be started before any output has been sent to the browser;"
> Line 420: . " output started in {$filename}/
> {$linenum}");
> Line 421: }
> Line 422:
> Line 423: // See http://www.php.net/manual/en/ref.session.php
> for explanation
--
Alexandru Szasz

zorroh

unread,
Sep 9, 2009, 6:20:44 AM9/9/09
to The Narro Project
configuration.inc.php line 99:
set_time_limit(0);
if i comment it out then comes following error:
Fatal error: Class 'NarroPluginHandler' not found in /var/www/sites/
mydomain.com/subdomains/sub/html/includes/application.inc.php on line
255

and there is no space before <? at the begining of the file and also
no spaces at the end ?>

Alexandru Szasz

unread,
Sep 9, 2009, 6:45:48 AM9/9/09
to narro-...@googlegroups.com
Pe 09.09.2009 13:20, zorroh a scris:
>
> configuration.inc.php line 99:
> set_time_limit(0);
> if i comment it out then comes following error:
> Fatal error: Class 'NarroPluginHandler' not found in /var/www/sites/
> mydomain.com/subdomains/sub/html/includes/application.inc.php on line
> 255

The problem may be because you took application.inc.php from the trunk,
which got quite changed from the time I suggested that.

I suggest you go back to the versions from 0.9.4 and change
HasPermissionForThisLang and HasPermission functions by adding
"if (self::$User instanceof NarroUser)" before return.

http://code.google.com/p/narro/source/browse/branches/narro_0_9_4/includes/application.inc.php
--
Alexandru Szasz

zorroh

unread,
Sep 9, 2009, 7:16:56 AM9/9/09
to The Narro Project
now frontpage comes up! i copied this version what you give without
any modifications.

and set_time_limit(0); in configuration is commented out

On 9 sept, 13:45, Alexandru Szasz <alex...@gmail.com> wrote:
> Pe 09.09.2009 13:20, zorroh a scris:
>
>
>
> > configuration.inc.php line 99:
> > set_time_limit(0);
> > if i comment it out then comes following error:
> > Fatal error: Class 'NarroPluginHandler' not found in /var/www/sites/
> > mydomain.com/subdomains/sub/html/includes/application.inc.php on line
> > 255
>
> The problem may be because you took application.inc.php from the trunk,
> which got quite changed from the time I suggested that.
>
> I suggest you go back to the versions from 0.9.4 and change
> HasPermissionForThisLang and HasPermission functions by adding
> "if (self::$User instanceof NarroUser)" before return.
>
> http://code.google.com/p/narro/source/browse/branches/narro_0_9_4/inc...
Reply all
Reply to author
Forward
0 new messages