[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP-Nuke in RaQ4



"Francisco Sánchez" <lists@xxxxxxxxxxxxx> wrote:
> The first error that I get (well, rather a warning, is about the call-time
> pass-by-reference.  I have solved this just by editing php.ini and turning
> it on:
>
> Warning: Call-time pass-by-reference has been deprecated - argument passed
> by value; If you would like to pass it by reference, modify the
declaration
> of [runtime function name](). If you would like to enable call-time
> pass-by-reference, you can set allow_call_time_pass_reference to true in
> your INI file. However, future versions may not support this any longer.
in
> /home/sites/site5/web/html/includes/sql_layer.php on line 294

Good start.

> Then, when making changes through the admin interface, everything is
> spoiled.  I have not foud a solution for this, though do know the cause:
the
> "\" that are written in the html code included in config.php just
dissapear:
>
> For example:
>
> $foot1 = "<a href=\"http://phpnuke.org\"; target=\"blank\"><img
> src=\"images/pow.....
>
> becomes $foot1 = "<a href="http://phpnuke.org"; target="blank"><img
> src="images/pow....

Let me get this straight because I'm not a phpnuke user.  When you use the
admin interface it rewrites a file called config.php and after the rewrite
backslashes
that were previously there no longer exist?  If that's the case then I
suspect magic_quotes needs to be enabled for the site.  You can do that in a
.htaccess file or alternately in php.ini, but be aware that will affect php
on all sites (not a bad thing unless it breaks some other sites' code, need
to restart Apache after php.ini change).  If you can't get it to work, post
the relevant lines from php.ini here and your .htaccess file if you create
one.

> And this for no apparent reason.  The resulting page now:
>
> Parse error: parse error in /home/sites/site5/web/html/config.php on line
92

I assume line 92 is one of the lines above.  That's b/c since a double quote
was used to begin enclosing the code the second double quote is treated as
closing it.  Not PHP's fault.

> Warning: Failed opening 'themes//theme.php' for inclusion
(include_path='')
> in /home/sites/site5/web/html/header.php on line 43

The double // is odd, but won't cause problems.  Perhaps you should check
the install/configuration instructions for phpnuke.  My guess is that you're
supposed to set the include_path in a .htaccess file and it's not set.

> Fatal error: Call to undefined function: themeheader() in
> /home/sites/site5/web/html/header.php on line 54

I assume that's because it's in themes/theme.php which header.php can't
locate.

> As per the file with <?php phpinfo(); >? I also get an error:
>
> Parse error: parse error in /home/sites/site5/web/html/test.php on line 1

That's my fault.  There was a typo in my instructions.  It should be:

<?php phpinfo(); ?>

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/