Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where should the admin dir be? easypopulate help


Qbaze

Recommended Posts

Posted

Hi all!

 

Maybe I'm stupid, but when I read the installation help file for this web-shop, I thought the admin directory should be placed in the www root on my server. Same for the Catalog dir. So they are "side by side".

But when I read the installation instructions for Easy populate, it said I should put the easypopulate.php file in catalog/admin/

So, should admin dir be inside catalog dir?

 

I moved my admindir to inside catalog dir, and when I open easypopulate.php I get this error announcement:

Fatal error: Cannot redeclare print_el() in /var/www/ringup/catalog/admin/includes/languages/svenska/easypopulate.php on line 361

 

Whats does that mean? :roll:

 

Best Regards!

Qbaze aka Andreas

I plan to write something smart down here.....

Posted

Hi,

 

the admin can be installed into the catalog folder but by rule everyone installs it to its own secure location.

I've just installed easypopulate and it works fine by puting files into the admin folder (not in catalog/admin).

 

I hope this helps.

 

Richard :D

Posted

Does anyone know why I get it?

 

Here's the whole story

I copied easypopulate.php to admin directory and opened it in my browser.

I got this error message at the top of the page:

Warning: Failed opening 'includes/languages/svenska/easypopulate.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/ringup/admin/includes/include_once.php on line 4

 

Ok....hmm so I thought that easypopulate should be in that dir TOO ?

So I copied it there....to /includes/languages/svenska/

 

Then refreshed. I then didnt get the same error. Now I got an other error at the middle of the page:

Fatal error: Cannot redeclare print_el() in /var/www/ringup/catalog/admin/includes/languages/svenska/easypopulate.php on line 361

 

My guess is that easypopulate should only be in admin dir, and that I have to figure out why I get the first error message.

 

Looking forward for help :)

This forum is great!

 

Best regards!

Andreas

I plan to write something smart down here.....

Posted
Does anyone know why I get it?

 

Here's the whole story

I copied easypopulate.php to admin directory and opened it in my browser.

I got this error message at the top of the page:

Warning: Failed opening 'includes/languages/svenska/easypopulate.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/ringup/admin/includes/include_once.php on line 4

 

Ok....hmm so I thought that easypopulate should be in that dir TOO ?

So I copied it there....to /includes/languages/svenska/

 

Then refreshed. I then didnt get the same error. Now I got an other error at the middle of the page:

Fatal error: Cannot redeclare print_el() in /var/www/ringup/catalog/admin/includes/languages/svenska/easypopulate.php on line 361  

 

My guess is that easypopulate should only be in admin dir, and that I have to figure out why I get the first error message.

 

Looking forward for help  :)

This forum is great!

 

Best regards!

Andreas

 

Forgive my answer to your post in the other thread, I was suffering from cranial/rectal inversion.

 

Anyway, I suspect you're running your admin in a different lang than english. The failing include at the top is OSC trying to load a language file for easypopulate. The .php files in the langs directories are NOT the same as the .php files of the same names in the modules directories.

 

Now, EasyPopulate is not language smart at this time, so if you just copy one of the existing files in that langs directory and name it easypopulate.php, it should fix that first warning.

 

The "Can't redeclare" type errors you are getting is because you put the easypopulate.php file in the langs dir, and when OSC copies that in from the langs dir, it defines the functions, but they are already defined in the easypopulate.php in the admins dir. So when you copy the other file and name it easypopulate.php in the langs dir, it will fix the import problem and the redeclare problem. Then we can see what your real problems are.

 

Tim

Posted

Hi Tim!

And thank you for your replyes, they did help ! :)

I got a little further when I did what you told me too.

But....still some problems...hopefully minor ones.

 

When I now click the link "Download a tab-delimited .txt file to edit" on the easypopulate.php page, I get this error message.

 

Warning: Supplied argument is not a valid MySQL result resource in /var/www/trubadurverkstan/admin/includes/functions/database.php on line 39

 

And on line 39 in database.php file can be read:

$result = mysql_fetch_array($db_query);

 

I also get this further down the page:

Cannot add header information - headers already sent by (output started at /var/www/trubadurverkstan/admin/includes/functions/database.php:39) in /var/www/trubadurverkstan/admin/easypopulate.php on line 338

 

...probobly as a resoult of the first error

 

Is there something missing in my mysql version?

I'm new to mysql as well so I have no idea what it means, but it seems to me that mysql dont understand the command mysql_fetch_array ?

 

Best regards!

Andreas

I plan to write something smart down here.....

Posted

Hi again Tim!

 

Just wanted you to know that my problems are solved.

 

I was running oscommerce 2.1 and now I tryed 2.2 and all works fine!

:roll:

/Andreas

I plan to write something smart down here.....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...