Fork me on GitHub

PN_zClassifieds header error  Bottom

  • Greetings,

    I have PN .762 & just tried setting up PN_zClassifieds 2.1. I followed the installation directions & have the module initialized/activated. I ran the install script with no errors & also removed both the install.php & upgrade.php.

    When I go to PN_zClassifieds' admin section, I recieve the following error:

    Quote

    Error: Invalid page 'friendads.php'


    with this error directly below that:

    Quote

    Fatal error: Cannot redeclare head() (previously declared in /var/www/html/header.php:36) in /var/www/html/header.php on line 34


    I've searched several forums, including these & couldn't turn up anything that was related. Any ideas?[/code]
  • After a little experimenting, I found that this works:

    In PN_zClassifieds Admin.php, starting at line 59, there's this:

    Code

    include("header.php");
        GraphicAdmin()
        menu()
        include 'footer.php';


    I changed it to read like this:

    Code

    include 'header.php';
        GraphicAdmin();
        menu();
        include("footer.php");


    For whatever reason, it works. If someone would care to teach me why this works as opposed to the original way, I'm all ears.

    -Coolbud01

This list is based on users active over the last 60 minutes.