Forums / All Other Contributions/Addons / Easy Populate Admin Tools?

Easy Populate Admin Tools?

Views: 5,329

Results 1 to 20 of 26
29 Apr 2011, 5:08 PM
#1
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Easy Populate Admin Tools?

Zen Cart Version 1.3.9H

URL: https://www.dars-parts.co.uk

Easy Populate version 1.2.5.4

I have managed to install the easy populate add on, so it shows in my configuration, but there is no option in my Admin 'Tools' Menu for the upload of the delimited txt file, options.

Does enybody know what I've missed in the installation to get this to show in my tools menu?

29 Apr 2011, 5:24 PM
#2
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Are you able to use the import function?

29 Apr 2011, 5:27 PM
#3
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

No, because I am not getting the menu option in the tools menu.

I have uploaded the delimited text file into the temp folder directly on the server, but I guess it is missing theporcess that lists the products, because I am not following the right procedure.

29 Apr 2011, 5:29 PM
#4
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

are you using the admin profiles add-on?

29 Apr 2011, 5:31 PM
#5
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

No, I don't think I am.

TBH, I am really unsure on installing add-ons to Zen cart, full-stop.

I would be willing to bet, it is something I have failed to do in the installation.

(I actually have two lots of Easy populate in the configuration menu, because I ran the SQL twice.)

29 Apr 2011, 5:36 PM
#6
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

If you made a database backup before adding easy populate and running the SQL install, you could try re-installing the database. You could also try explaining step by step how you did the install (including all the details) so we can see if there's any steps missed during the install.

29 Apr 2011, 5:42 PM
#7
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Ha ha, database backup. Yea, right, I did that! :wink:

I installed by uploading the zip folder to my ariotek hosted domain, top level nice and easy!

I then copied the SQL code to the 'install SQL patches' in the admin 'tools'

I have done nothing else, apart from upload the delimited text file to the temp folder.

Does this help?

You mention 'reinstalling the database' - I am not sure of what procedure you are referring to for this, but would this help?

29 Apr 2011, 6:00 PM
#8
soniccc avatar

soniccc

Zen Follower

Join Date:
May 2010
Location:
Cyberspace
Posts:
387
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Re-installing the db would be helpful if you have double entries of the easy populate add-on, in your db (and they're conflicting). To begin with you could check so that the admin folder of your ZenCart install (the one on your web server) is named the same as the admin folder in your easy populate install. For instance, if the easy populate admin folder is named "admin" your admin folder on your web server should also be named "admin". Are you using any other language in your live shop than the default (English)?

29 Apr 2011, 6:15 PM
#9
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

The installation is as per the default, the ZC store installed directly to the domain, with the easy populate installed to the same directory.

So the admin folder is correctly configured, for both the installation and the add-on, with no funny business in between.

I am not sure how to reinstall my database though, so if you could advise me on the safest way to do that, it could be a start.

I can access my sql databases from the ariotek server conrol panel, but strangely I can't actually find anything relating to easy populate.

29 Apr 2011, 6:31 PM
#10
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Further update - reading through the instructions I entered the following url:

http://dars-parts.co.uk/admin/easypopulate.php?langer=install

As a result, the following is displayed:

Warning: require_once(includes/application_top.php) [function.require-once]: failed to open stream: No such file or directory in /home/bushiren/public_html/www.dars-parts.co.uk/admin/easypopulate.php on line 105

Fatal error: require_once() [function.require]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bushiren/public_html/www.dars-parts.co.uk/admin/easypopulate.php on line 105

I have since checked to see if the easy populate option is in the tools menu, and it still isn't.

Thought this might help to diagnose the issue I am having.

I have checked the directory to make sure application_top.php is in the includes directory, and it is.

I didn't look at line 105, becasue I wouldn;t know what I was looking at.

But you might, so here is the content of that file:

<?php /** * application_top.php Common actions carried out at the start of each page invocation. * * Initializes common classes & methods. Controlled by an array which describes * the elements to be initialised and the order in which that happens. * see {@link <http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem> wikitutorials} for more details. * * @package initSystem * @copyright Copyright 2003-2010 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: application_top.php 15766 2010-03-31 20:17:56Z drbyte $ */ /** * inoculate against hack attempts which waste CPU cycles */ $contaminated = (isset($_FILES['GLOBALS']) || isset($_REQUEST['GLOBALS'])) ? true : false; $paramsToAvoid = array('GLOBALS', '_COOKIE', '_ENV', '_FILES', '_GET', '_POST', '_REQUEST', '_SERVER', '_SESSION', 'HTTP_COOKIE_VARS', 'HTTP_ENV_VARS', 'HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_POST_FILES', 'HTTP_RAW_POST_DATA', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS'); $paramsToAvoid[] = 'autoLoadConfig'; $paramsToAvoid[] = 'mosConfig_absolute_path'; $paramsToAvoid[] = 'hash'; $paramsToAvoid[] = 'main'; foreach($paramsToAvoid as $key) { if (isset($_GET[$key]) || isset($_POST[$key]) || isset($_COOKIE[$key])) { $contaminated = true; break; } } $paramsToCheck = array('main_page', 'cPath', 'products_id', 'language', 'currency', 'action', 'manufacturers_id', 'pID', 'pid', 'reviews_id', 'filter_id', 'zenid', 'sort', 'number_of_uploads', 'notify', 'page_holder', 'chapter', 'alpha_filter_id', 'typefilter', 'disp_order', 'id', 'key', 'music_genre_id', 'record_company_id', 'set_session_login', 'faq_item', 'edit', 'delete', 'search_in_description', 'dfrom', 'pfrom', 'dto', 'pto', 'inc_subcat', 'payment_error', 'order', 'gv_no', 'pos', 'addr', 'error', 'count', 'error_message', 'info_message', 'cID', 'page', 'credit_class_error_code'); if (!$contaminated) { foreach($paramsToCheck as $key) { if (isset($_GET[$key]) && !is_array($_GET[$key])) { if (substr($_GET[$key], 0, 4) == 'http' || strstr($_GET[$key], '//')) { $contaminated = true; break; } if (isset($_GET[$key]) && strlen($_GET[$key]) > 43) { $contaminated = true; break; } } } } unset($paramsToCheck, $paramsToAvoid, $key); if ($contaminated) { header('HTTP/1.1 406 Not Acceptable'); exit(0); } unset($contaminated); /* *** END OF INNOCULATION *** */ /** * boolean used to see if we are in the admin script, obviously set to false here. */ define('IS_ADMIN_FLAG', false); /** * integer saves the time at which the script started. */ define('PAGE_PARSE_START_TIME', microtime()); // define('DISPLAY_PAGE_PARSE_TIME', 'true'); @ini_set("arg_separator.output","&"); /** * Set the local configuration parameters - mainly for developers */ if (file_exists('includes/local/configure.php')) { /** * load any local(user created) configure file. */ include('includes/local/configure.php'); } /** * boolean if true the autoloader scripts will be parsed and their output shown. For debugging purposes only. */ define('DEBUG_AUTOLOAD', false); /** * set the level of error reporting * * Note STRICT_ERROR_REPORTING should never be set to true on a production site. <br /> * It is mainly there to show php warnings during testing/bug fixing phases.<br /> * note for strict error reporting we also turn on show_errors as this may be disabled<br /> * in php.ini. Otherwise we respect the php.ini setting * */ if (defined('STRICT_ERROR_REPORTING') && STRICT_ERROR_REPORTING == true) { @ini_set('display_errors', TRUE); error_reporting(version_compare(PHP_VERSION, 5.3, '>=') ? E_ALL & ~E_DEPRECATED & ~E_NOTICE : version_compare(PHP_VERSION, 6.0, '>=') ? E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_STRICT : E_ALL & ~E_NOTICE); } else { error_reporting(0); } /* * turn off magic-quotes support, for both runtime and sybase, as both will cause problems if enabled */ if (version_compare(PHP_VERSION, 5.3, '<') && function_exists('set_magic_quotes_runtime')) set_magic_quotes_runtime(0); if (@ini_get('magic_quotes_sybase') != 0) @ini_set('magic_quotes_sybase', 0); /** * check for and include load application parameters */ if (file_exists('includes/configure.php')) { /** * load the main configure file. */ include('includes/configure.php'); } else { $problemString = 'includes/configure.php not found'; require('includes/templates/template_default/templates/tpl_zc_install_suggested_default.php'); exit; } /** * if main configure file doesn't contain valid info (ie: is dummy or doesn't match filestructure, display assistance page to suggest running the installer) */ if (!defined('DIR_FS_CATALOG') || !is_dir(DIR_FS_CATALOG.'/includes/classes')) { $problemString = 'includes/configure.php file contents invalid. ie: DIR_FS_CATALOG not valid or not set'; require('includes/templates/template_default/templates/tpl_zc_install_suggested_default.php'); exit; } /** * include the list of extra configure files */ if ($za_dir = @dir(DIR_WS_INCLUDES . 'extra_configures')) { while ($zv_file = $za_dir->read()) { if (preg_match('/\.php$/', $zv_file) > 0) { /** * load any user/contribution specific configuration files. */ include(DIR_WS_INCLUDES . 'extra_configures/' . $zv_file); } } $za_dir->close(); unset($za_dir); } $autoLoadConfig = array(); if (isset($loaderPrefix)) { $loaderPrefix = preg_replace('/[a-z_]^/', '', $loaderPrefix); } else { $loaderPrefix = 'config'; } $loader_file = $loaderPrefix . '.core.php'; require('includes/initsystem.php'); /** * determine install status */ if (( (!file_exists('includes/configure.php') && !file_exists('includes/local/configure.php')) ) || (DB_TYPE == '') || (!file_exists('includes/classes/db/' .DB_TYPE . '/query_factory.php')) || !file_exists('includes/autoload_func.php')) { $problemString = 'includes/configure.php file empty or file not found, OR wrong DB_TYPE set, OR cannot find includes/autoload_func.php which suggests paths are wrong or files were not uploaded correctly'; require('includes/templates/template_default/templates/tpl_zc_install_suggested_default.php'); header('location: zc_install/index.php'); exit; } /** * load the autoloader interpreter code. */ require('includes/autoload_func.php'); /** * load the counter code **/ if ($spider_flag == false) { // counter and counter history require(DIR_WS_INCLUDES . 'counter.php'); } // get customers unique IP that paypal does not touch $customers_ip_address = $_SERVER['REMOTE_ADDR']; if (!isset($_SESSION['customers_ip_address'])) { $_SESSION['customers_ip_address'] = $customers_ip_address; }
29 Apr 2011, 6:58 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Lam-CS:

Ha ha, database backup. Yea, right, I did that! :wink:

I installed by uploading the zip folder to my ariotek hosted domain, top level nice and easy!

I then copied the SQL code to the 'install SQL patches' in the admin 'tools'

Incorrect method!

Don't use this technique to load modules / add-ons to your ZC installation.

You should be using a reliable FTP program. Additionally, there is NO NEED to run the SQL for EasyPop. (SEE THE ACCOMPANYING README).

Using FTP, EasyPopulate can be loaded and installed in your store in under 45 seconds.

Use the proper techniques - read the accompanying README - and you'll be OK.

20 years a Zencart User

29 Apr 2011, 7:08 PM
#12
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

I can use an FTP program, I use FileZilla, for sites I don't have direct access to.

Unfortunately the README's and Install files for most add-ons are either written with half the proper instructions missing, or technical jargon.

They are also rammed with fixes and updates and amendments, that i haven't got a clue if I need them.

Schoolboy, I am really confused at exactly what i need to do, from start to finish, just to indstall the add on and get it working properly.

If you could help I would be very grateful.

29 Apr 2011, 7:23 PM
#13
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Hi Lam...

Firstly, FTP is the most reliable way to install modules - mainly because FTP will ensure that the INTEGRITY of the folder/file structure is retained.

Inside the MAIN DIRECTORY of an ADD-ON (or module), there is generally a number of SUB-DIRECTORIES and even SUB-SUB-DIRECTORIES.

The writer of a module will construct the directory TREE, to match exactly, the Directory Tree in zencart itself.

By uploading (via c-Panel) and unzipping a module, all you have done is unzipped all the files in ONE PLACE on your server. The CONTENTS of that module are not loaded into the corresponding folders (directories) in zencart... they are just sitting as a "lump" of files in the unzipped folder.

So... you MUST use FTP to load a module, because FTP will ensure that EACH FILE in the module goes into the CORRECT FOLDER in your zencart installation.

TECHNICALLY, you can use c-Panel uploading... but it will require you to keep detailed track of what file goes where... It will take HOURS to do it this way.... and is prone to errors.

20 years a Zencart User

29 Apr 2011, 7:40 PM
#14
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Ariotek also acts in this way and maintains the integrity of the file structure, rather than just batching them all at top level.

Regardless of this I have used Filezilla to upload, and all the files required 'overwrite' because they were structured correctly.

However I am still having the same problem.

I am assuming you have managed to install this in some of your customers' zen cart stores, so if you could tell me the procedure you followe dto install it, I would be very grateful.

29 Apr 2011, 7:59 PM
#15
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Lam-CS:

Ariotek also acts in this way and maintains the integrity of the file structure, rather than just batching them all at top level.

Regardless of this I have used Filezilla to upload, and all the files required 'overwrite' because they were structured correctly.

However I am still having the same problem.

I am assuming you have managed to install this in some of your customers' zen cart stores, so if you could tell me the procedure you followe dto install it, I would be very grateful.

Do NOT use auto-install facilities!

Why... ?

Your ADMIN folder has probably been re-named, right? If you are using zc 1.3.9, you would have been FORCED to rename your admin folder. Now, in Easy Populate, there is a folder called admin. If you don't MANUALLY rename it to match your unique admin folder name, then no auto-install system in the world will ensure that the files go into the right place.

I can't say any more than that.

When I install EP on clients' sites, I use FTP and in general get it installed and working in under 45 seconds...

20 years a Zencart User

29 Apr 2011, 8:19 PM
#16
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

My admin folder has never been renamed!

29 Apr 2011, 8:26 PM
#17
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

What version of ZC are you running?

20 years a Zencart User

29 Apr 2011, 8:27 PM
#18
lam_cs avatar

lam_cs

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

1.3.9H - I can't recall it having prompted me to change this either

29 Apr 2011, 8:27 PM
#19
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Also... when you used ariotek, it might have CREATED a folder called admin.

What folders do you have in your store ROOT directory?

20 years a Zencart User

29 Apr 2011, 8:29 PM
#20
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Easy Populate Admin Tools?

Lam-CS:

1.3.9H - I can't recall it having prompted me to change this either

Have you got a folder called zc_admin?

If so, you probably used ariotek, fantastico or softaculous to install zc in the first place...

Am I right?

You seem to like "auto install"...

Get out of that habit... No webmaster worth his/her salt uses auto install and auto update... It's too dangerous.

20 years a Zencart User