Topic: ADMIN Panel Bugs

Hi all, im new here so a big hello to all the community!

I am just after installing the program on a linux box, everything seems to be going well except for the admin panel...

Once I am in the Admin panel, i cannot add new categories / manufacturers etc. because the buttons seem to be reporting a false url:

eg. when i click NEW Manufacturer i am linked to:

http://mysite.com/inventory/admin/manuf … r_edit.php

As a matter of fact, if i try to click on anything once im in the admin panel it seems to double up on those links....

I look forward to your replies, thanks! big_smile

Re: ADMIN Panel Bugs

This is a strange problem that I haven't seen before.  My guess is that it's a problem with your configuration.inc.php.  Could you post what you have set in your configuration.inc.php?  Specifically the __DOCROOT__, __VIRTUAL_DIRECTORY__, AND __SUBDIRECTORY__.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: ADMIN Panel Bugs

Hi, yeah I figured it might be that but to me everything seems okay in the config file...in anycase here you go:

PS. The double links error is not just in the admin panel, it also seems to be on all edit/add content buttons...main links however, are okay.

<?php
    // This is the "Pro" version of configuration.inc.php, without any comments, and restructured in a way
    // that should make sense for most pro-users of Qcodo
    
    // As always, feel free to use, change or ignore.

    define('SERVER_INSTANCE', 'dev');

    switch (SERVER_INSTANCE) {
        case 'dev':
        case 'test':
        case 'stage':
        case 'prod':
            define ('__DOCROOT__', 'myrootdirectory/html');
            define ('__VIRTUAL_DIRECTORY__', '');
            define ('__SUBDIRECTORY__', '/inventory');

            define('DB_CONNECTION_1', serialize(array(
                'adapter' => 'MySqli5',
                'server' => 'mydatabaseinfo',
                'port' => null,
                'database' => 'mydatabaseinfo',
                'username' => 'mydatabaseinfo',
                'password' => 'mydatabaseinfo',
                'profiling' => false)));
            break;
    }

    define('ALLOW_REMOTE_ADMIN', false);
    define ('__URL_REWRITE__', 'none');

    define ('__DEVTOOLS_CLI__', __DOCROOT__ . __SUBDIRECTORY__ . '/_devtools_cli');
    define ('__INCLUDES__', __DOCROOT__ .  __SUBDIRECTORY__ . '/includes');
    define ('__QCODO__', __INCLUDES__ . '/qcodo');
    define ('__QCODO_CORE__', __INCLUDES__ . '/qcodo/_core');
    define ('__DATA_CLASSES__', __INCLUDES__ . '/data_classes');
    define ('__DATAGEN_CLASSES__', __INCLUDES__ . '/data_classes/generated');
    define ('__FORMBASE_CLASSES__', __INCLUDES__ . '/formbase_classes_generated');
    define ('__PANELBASE_CLASSES__', __INCLUDES__ . '/panelbase_classes_generated');
    define ('__DEVTOOLS__', __SUBDIRECTORY__ . '/_devtools');
    define ('__FORM_DRAFTS__', __SUBDIRECTORY__ . '/form_drafts');
    define ('__PANEL_DRAFTS__', __SUBDIRECTORY__ . '/panel_drafts');

    // We don't want "Examples", and we don't want to download them during qcodo_update
    define ('__EXAMPLES__', null);

    define ('__JS_ASSETS__', __SUBDIRECTORY__ . '/js');
    define ('__CSS_ASSETS__', __SUBDIRECTORY__ . '/css');
    define ('__IMAGE_ASSETS__', __SUBDIRECTORY__ . '/images');
    define ('__PHP_ASSETS__', __SUBDIRECTORY__ . '/includes/php');

    if ((function_exists('date_default_timezone_set')) && (!ini_get('date.timezone')))
        date_default_timezone_set('America/Los_Angeles');

    define('ERROR_PAGE_PATH', __PHP_ASSETS__ . '/_core/error_page.php');
?>

Re: ADMIN Panel Bugs

I'm not sure if this is the problem or not,  but can you make sure that your __DOC_ROOT__ value starts with a forward slash?  For example:

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

NOT

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

Please let us know if that fixes your problem.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: ADMIN Panel Bugs

Hi there and thanks for the reply!

I already had the forward slash there so unfortunately no, it did not resolve the issue sad I tried removing it too but that didnt work either.

All the main links seems to work but all the add/edit buttons double the urls...could it be anything else?

Let me know, thanks!
Deja

Re: ADMIN Panel Bugs

This is a strange one.  Can you give us some more details about your setup so we might be able to narrow it down?

  • Linux Distro

  • Web Server & version

  • PHP (web server plugin/module or cgi?) & version

  • Web browser & version

Thanks.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: ADMIN Panel Bugs

Hi!

I am running on a Linux shared hosting account with GoDaddy.

PHP Version 5.2.5

Am using both firefox version 3.0.9 and internet exlporer 7.0.5730.13

Server API  is CGI/FastCGI

PS, I tried a clean install, new files, new database, new subdirectory all to no avail sad

Last edited by deja (2009-04-29 03:49:21)

Re: ADMIN Panel Bugs

Hate to "bug" you on this (excuse the pun), but do you have any more ideas as to what this issue could be? smile

Thanks in advance,
Deja.

Re: ADMIN Panel Bugs

Deja,

I am unsure what about your particular setup is causing the bug,  but I can tell you how to workaround it until we figure it out.  You will need to edit each page where the bug is happening.  For example,  if the bug happens when you click the 'New Category' button on category_list.php,  you will need to edit that file.  Look for the call to QApplication::Redirect() towards the end of the file:

QApplication::Redirect('category_edit.php');

and replace it with something like this:

QApplication::Redirect('/path/to/category_edit.php');

I know this might be an inconvenience,  but it's the only short-term solution I can think of.

Justin Sinclair

Got Inventory? Get Tracmor.

Re: ADMIN Panel Bugs

deja.  hamish here!  justin worked for some time on this this am without any luck.  his assertion is it's probably on your side (server set-up) hard to trouble shoot on our end :-(  sorry we can't be of any further help on this one, at this time.  keep posting, and keep trying on your end, is the best i can come up with at this time.

Re: ADMIN Panel Bugs

Thanks guys...you are probably right but I cant figure it out for the life of me!

I wonder could it have anything to do with a .htaccess rewrite / redirect rule? Or maybe we could make one to bypass this error?

Let me know if you have any ideas, thanks!
Deja

Re: ADMIN Panel Bugs

jsinclair wrote:

Deja,

I am unsure what about your particular setup is causing the bug,  but I can tell you how to workaround it until we figure it out.  You will need to edit each page where the bug is happening.  For example,  if the bug happens when you click the 'New Category' button on category_list.php,  you will need to edit that file.  Look for the call to QApplication::Redirect() towards the end of the file:

QApplication::Redirect('category_edit.php');

and replace it with something like this:

QApplication::Redirect('/path/to/category_edit.php');

I know this might be an inconvenience,  but it's the only short-term solution I can think of.

Hi, I am trying to fix this bug in the asset_edit.php file (the "ship" button is causing a double url to post) however I cant find the QApplication::Redirect you quoted....how would I fix this error in the asset_edit.php file?

Re: ADMIN Panel Bugs

Bump bump!