Zen Cart Logo
Forums / Addon Admin Tools / EasyPopulate 4.0 Support Thread

EasyPopulate 4.0 Support Thread

Sticky

Views: 733,413

Results 2,541 to 2,560 of 3,671
21 Jun 2016, 7:01 PM
#2541
azcomp avatar

azcomp

New Zenner

Join Date:
Feb 2010
Posts:
63
Plugin Contributions:
0

EasyPopulate 4.0 Support Thread

Thanks for the help, the strange thing is this is the same server the test site was on. I will give this a go!

mc12345678:

For this issue see post 2524

Your host is not supporting part of the multi-byte functionality and when I expanded support to allow continued operation, I left off a comparison which forces that error even for something with a single character.

21 Jun 2016, 7:52 PM
#2542
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

AZComp:

Thanks for the help, the strange thing is this is the same server the test site was on. I will give this a go!

Well, even on the same server and depending on what the host allows, two different locations on the server can have different parts of the server software enabled. Typically through php.ini or cpanel depending.

Let us know how it goes!

25 Jun 2016, 5:19 PM
#2543
spython avatar

spython

New Zenner

Join Date:
Jun 2016
Location:
New York, NY
Posts:
85
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

My OS is Linux with PHP 7, Apache 2 and Mysql Ver 14.14. I have Easy Populate 4. with Zencart 1.5.5a I was unable to import a csv file because I was getting errors for character limit of category - although the characters in that field were less that 15. So I rebuilt PHP and enable mbstring . I restarted mysql and apache but now I cannot access the admin section of Zencart. The front end is okay. I am getting this: "The page you are trying to view cannot be shown because the authenticity of the received data could not be verified." So it has something to do with the way config.php is accessing ssl or is it curl?

25 Jun 2016, 5:21 PM
#2544
spython avatar

spython

New Zenner

Join Date:
Jun 2016
Location:
New York, NY
Posts:
85
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Here is how I configure PHP:
-with-gd --with-pdo-mysql --with-zlib --with-openssl --with-curl --with-mysqli --with-apxs2=/var/lib/apache2/bin/apxs --with-jpeg-dir=/usr/ --enable-mbstring

25 Jun 2016, 6:22 PM
#2545
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

SPython:

My OS is Linux with PHP 7, Apache 2 and Mysql Ver 14.14. I have Easy Populate 4. with Zencart 1.5.5a I was unable to import a csv file because I was getting errors for character limit of category - although the characters in that field were less that 15. So I rebuilt PHP and enable mbstring . I restarted mysql and apache but now I cannot access the admin section of Zencart. The front end is okay. I am getting this: "The page you are trying to view cannot be shown because the authenticity of the received data could not be verified." So it has something to do with the way config.php is accessing ssl or is it curl?

SPython:

Here is how I configure PHP:
-with-gd --with-pdo-mysql --with-zlib --with-openssl --with-curl --with-mysqli --with-apxs2=/var/lib/apache2/bin/apxs --with-jpeg-dir=/usr/ --enable-mbstring

So, seems a few good things/actions being taken because of an accidental lapse in a comparitor in the code that is posted about in the last several pages, but I would say that the issues involved are a little beyond the scope of this particular thread. There's an entire section area about setting up to run a ZC version on particular servers/OSs. It does appear that it could be related to the items identified, but also several others.

May I suggest either starting a new thread or continuing to search either the Zc forum or outside of it to identify a solution to the issue associated with install/setup of the server software.

26 Jun 2016, 8:42 PM
#2546
spython avatar

spython

New Zenner

Join Date:
Jun 2016
Location:
New York, NY
Posts:
85
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

As I mentioned somewhere, I reinstalled Zencart and was able to access the admin and other functions. I then installed Easy Populate 4. It appears as expected under Tools but when I click on it I get a "Secure Connection Failed" message in Firefox. Tried Chrome with a similar result. It is odd because php and the ssl certificate is working elsewhere on the server. Perhaps there is a directory that is configured with the wrong permission - but I would expect Easy Populate to say so. Very frustrated with this. Would appreciate advice.

26 Jun 2016, 9:01 PM
#2547
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

SPython:

As I mentioned somewhere, I reinstalled Zencart and was able to access the admin and other functions. I then installed Easy Populate 4. It appears as expected under Tools but when I click on it I get a "Secure Connection Failed" message in Firefox. Tried Chrome with a similar result. It is odd because php and the ssl certificate is working elsewhere on the server. Perhaps there is a directory that is configured with the wrong permission - but I would expect Easy Populate to say so. Very frustrated with this. Would appreciate advice.
Definitely a new "issue" not seen before in my experience.
That said a few things to try.
So you are able to navigate to other areas of the admin and not get a similar error?
Are you able to click the check for upgrade button on the top right of ZC and also not get the same error?
Are there any recent/related log errors in the ZC logs folder? (can post but obscure/rename the provided admin folder name.)
Are you able to access the remove operation or is there no access at all to the screen?
Are there now any server logs associated that identify an "inappropriate" operation? Things that happen on this screen are database lookups, server file reviews, potential database modification of the configuration settings, reachout to the ZC server for version status using either built-in ZC code or if not present a duplication of that code.
Tried re-uploading the files (possibly again I understand)?

I'll have to think of a few other possibilities, but if an error related to the code could be identified, then something more direct could be offered. :/

27 Jun 2016, 7:19 PM
#2548
spython avatar

spython

New Zenner

Join Date:
Jun 2016
Location:
New York, NY
Posts:
85
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

The update check in Zen Cart works as does everything else. When I click on Tools/Easy Populate it throws a series of this in the main server error logs:
[core:notice] [pid 14902:tid 3086542528] AH00052: child pid 17380 exit signal Segmentation fault (11)
A thought - where does Easy Populate store its keys? In the user's zencart directory, in the mysql database, or elsewhere on the server? When I reinstalled zencart and then Easy Populate I did not remove the keys from the previous configuration. (I was unable to access the admin.) Could this be the problem?

27 Jun 2016, 11:19 PM
#2549
spython avatar

spython

New Zenner

Join Date:
Jun 2016
Location:
New York, NY
Posts:
85
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Also deleted Zencart and the mysql database, Reinstalled Zencart and a new mysql database. Then installed Easy Populate 4.0 Same segfault. Is there a manual way to initialize Easy Populate or is there a more recent version?

28 Jun 2016, 12:15 AM
#2550
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

SPython:

The update check in Zen Cart works as does everything else. When I click on Tools/Easy Populate it throws a series of this in the main server error logs:
[core:notice] [pid 14902:tid 3086542528] AH00052: child pid 17380 exit signal Segmentation fault (11)
A thought - where does Easy Populate store its keys? In the user's zencart directory, in the mysql database, or elsewhere on the server? When I reinstalled zencart and then Easy Populate I did not remove the keys from the previous configuration. (I was unable to access the admin.) Could this be the problem?

The only database edit made by installing the files to the server for EP4 is the registration of the admin page as provided by admin/includes/functions/extra_functions/reg_easypopulate_4.php

The next database editing performed is what is done when the install link is selected at the top of the screen once the EasyPopulate v4 tools menu option has been selected. From the sounds of it, this action was previously performed on the database when the error was presented regarding the category name length being too long (an issue identified several times in the last couple of pages with a solution also given).

If the store files were rebuilt on the same database, and EP4 reuploaded, then all of the database data would still be in place to support continued use.

The database install script (run the first time EP4 was installed to whatever database was used) is found in the admin/includes/functions/extra_functions/easypopulate_4_functions.php file. There is also a function that does a remove in the same file. Assuming that nothing in admin/easypopulate_4.php is causing the error on this system before the install/remove code in that file, then the remove option could be put on the url to try to execute the removal code.

That said, there are no files stored to the system by the code other than export of a csv that contains database information or a debug text file when attempting to process information in or out of the database. All settings are stored in the configuration table (with applicable database prefix) other than the registration of admin windows like in the first file mentioned. All initial database modifications are covered in that install function of the file described above. There are two functions adjacent to that one which will "monitor" the location of the temporary file to attempt to not have the admin directory name stored in the database.

If more detailed instruction/description is desired, I'll have to dig deeper, but it would also help to understand more about the history of the current database and if there is anything more direct that can be provided as to the log(s) of issues.

Lastly, I just did an Internet search on "exit signal segmentation fault (11)" and things pointed back to server setup, php.ini, thread/child node behavior, and a number of other things, but typically not the original php code. :/

As to "more recent" the patches identified here in the thread related to the version downloadable from the ZC website have been applied to the github version that I maintain while I continue to work on a few other branches to apply the next set of features.

28 Jun 2016, 6:48 PM
#2551
spython avatar

spython

New Zenner

Join Date:
Jun 2016
Location:
New York, NY
Posts:
85
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Thank you for your advice and taking time with this. When I run strace on easypopulate_4.php it throws this error:
write(1, "ERROR: admin/includes/configure."..., 89ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?) = 89

Should I assume that it does not know where the (renamed) admin directory is? configure.php is there in the includes directory. What permissions should it be?

28 Jun 2016, 7:08 PM
#2552
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

SPython:

Thank you for your advice and taking time with this. When I run strace on easypopulate_4.php it throws this error:
write(1, "ERROR: admin/includes/configure."..., 89ERROR: admin/includes/configure.php file not found. Suggest running zc_install/index.php?) = 89

Should I assume that it does not know where the (renamed) admin directory is? configure.php is there in the includes directory. What permissions should it be?

Typical permissions upon install are 644 for the admin/includes/configure.php file, with suggestion to set to 444 to prevent writing/rewriting. EP4 doesn't modify this file and is only pulled for use by including application_top.php which loads the admin configure.php file. Perhaps something is amiss with the file? But this also further doesn't exactly make sense if this plugin is the only admin tool that is causing this issue. :/

One of the suggestions I came across was to tie to the parent process that appears to be causing the issue and as part of that tie to include a back trace logged error to identify where in execution the error is truly occurring. :/

1 Jul 2016, 9:54 PM
#2553
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

While this may come as a shock to some/many and with considerable thought, today a different plugin that performs the same actions as EP4 has been submitted as well a different plugin with no collaboration to develop or consider as a straight replacement for EP4. As some of the heavy hitting plugins have previously gone with multiple variants, I do not see that such a thing should continue to occur. While I have not performed any testing of this new plugin, I have no doubt that any issues (if they exist) will be rectified. I have already notified the original author of EP4 of my concerns. I am further aware that it doesn't include the SBA added functionality of EP4, but that can and will be addressed separately as well as other developed plugins.

Because that plugin has been so developed and it offers additional fields the ability of which is not built into EP4 at this time, I call to you the user community about the specific need of EP4 although some of the other features identified in that plugin can and were to be added to EP4.

For those long-term Zenners, think back on the history of Stock-by-Attributes and the multiple variants that existed... This history doesn't need to be repeated.

I expect that plugin to be available by the end of the weekend. Meanwhile I probably will submit a final version that incorporates the bug fixes of the last couple of pages and continue to support the community in other ways unless some compelling reason exists for two individuals to support two different plugins that ultimately do the same thing.

2 Jul 2016, 9:04 PM
#2554
zean avatar

zean

Zen Follower

Join Date:
May 2009
Posts:
200
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

mc12345678:

While this may come as a shock to some/many and with considerable thought, today a different plugin that performs the same actions as EP4 has been submitted as well a different plugin with no collaboration to develop or consider as a straight replacement for EP4. As some of the heavy hitting plugins have previously gone with multiple variants, I do not see that such a thing should continue to occur. While I have not performed any testing of this new plugin, I have no doubt that any issues (if they exist) will be rectified. I have already notified the original author of EP4 of my concerns. I am further aware that it doesn't include the SBA added functionality of EP4, but that can and will be addressed separately as well as other developed plugins.

Because that plugin has been so developed and it offers additional fields the ability of which is not built into EP4 at this time, I call to you the user community about the specific need of EP4 although some of the other features identified in that plugin can and were to be added to EP4.

For those long-term Zenners, think back on the history of Stock-by-Attributes and the multiple variants that existed... This history doesn't need to be repeated.

I expect that plugin to be available by the end of the weekend. Meanwhile I probably will submit a final version that incorporates the bug fixes of the last couple of pages and continue to support the community in other ways unless some compelling reason exists for two individuals to support two different plugins that ultimately do the same thing.

Thanks for the heads-up. I'm excited to see it since you seem to be saying the "different plugin" "offers additional fields."
I'm hoping it offers the SORT ORDER fields I had to give up on as explained here

https://www.zen-cart.com/showthread.php?190417-EasyPopulate-4-0-Support-Thread&p=1312654#post1312654

2 Jul 2016, 9:58 PM
#2555
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

Zean:

Thanks for the heads-up. I'm excited to see it since you seem to be saying the "different plugin" "offers additional fields."
I'm hoping it offers the SORT ORDER fields I had to give up on as explained here

https://www.zen-cart.com/showthread.php?190417-EasyPopulate-4-0-Support-Thread&p=1312654#post1312654
Don't know. Unfortunately I had a detailed response for you, but in reply to someone else I lost it and didn't go back to recreate it. One of the sort orders though is already available in the categories import/export if I remember correctly, just not in the products list. As I recall also, one of the desired sort orders to be included/listed in conjunction with other data would have caused a sequencing issue without extensive rewrite for something covered in a separate area that is/was specifically designed to address that aspect.

For more information about the other plugin look through recent posts and maybe even reach out to lankeeyankee. As has come customary of most recent public plugins, the code can be previewed/downloaded from github.

The biggest difference I have seen is 1) good luck writing your own set of code to accomplish larger tasks, 2) get to know your specific import file because you will have to "choose" between various import options based on how the file was generated which may not be a big issue if one always follows the same process for each file, 3) supposedly the export auto_expands to include multiple fields rather than them being considered/added to the filter(s).

Haven't looked deeply at the import process but did seem some limiting factors related to number of fields, so hoping for those that like to otherwise limit the number of fields on which they upload that they can still do that.

One thing that really shouldn't surprise me is that one question has already been asked from the perspective of an action to be "incorporated" and pointed out as a "problem" of EP4, but has not as I have seen it been a requested feature or modification of EP4. Too bad, like many of the other improvements that were going to be made, such an additional option could have been added to EP4 upon request. My plan is to document possible improvements or the planned mods for EP4 in the original developers area. As said before I took this up because it had great promise, was functional, and support could not be provided by the original author because of other commitments. Further other EP products were non-functional out-of-the-box, didn't offer the same breadth of options, and were too rigid in their construct. This plugin has been around for 4 years, although only recently uploaded to ZC and apparently there remain mainy users that don't read the documentation and have gotten their sites into some trouble as a result (mostly related to the CHAR_SET being wrong between EP4 (strictly has been using UTF-8) and the site (possibly likely latin1) which was also something that was going to be addressed, but another no-need at this point).

Floor is still open on the topic of EP4, but other than the absence of SBA related items, which I seriously doubt would be included by the author because of a conflict of interest in their own commercial product, it seems to me to be the same thing just another variant. Such variants are expected to be minimized in and by the ZC community.

4 Jul 2016, 7:18 PM
#2556
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Hi
Is the manufactures_info getting the same ID's that manufactures ID table ?
This has been reported here ( well....more or less )

https://www.zen-cart.com/showthread.php?126810-SitemapXML-v-2/page168

After doing some checking , I'm getting different ID's ....
so the $v_manufacturers_id = ($ep_uses_mysqli ? mysqli_insert_id($db->link) : mysql_insert_id()); is getting a higher number

Anyone else with this issue ?
(Note to mc12345678 : in this case, I'm importing the full EP4 file, no books )

4 Jul 2016, 8:35 PM
#2557
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

Well , the only way I can get this to work is like this :
around line 1668

 $v_manufacturers_id = ($ep_uses_mysqli ? mysqli_insert_id($db->link) : mysql_insert_id()); // id is auto_increment, so can use this function

            if ($result) {
              zen_record_admin_activity('Inserted manufacturer ' . addslashes($v_manufacturers_name) . ' via EP4.', 'info');
            }

I guess the record_admin_activity is inserting also, and probably that's the ID that the manufacturer_info gets....
So the mysqli_insert_id($db->link) should be above that zen_record_etc function,,,,

5 Jul 2016, 9:49 AM
#2558
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: EasyPopulate 4.0 Support Thread

mesnitu:

Well , the only way I can get this to work is like this :
around line 1668

$v_manufacturers_id = ($ep_uses_mysqli ? mysqli_insert_id($db->link) : mysql_insert_id()); // id is auto_increment, so can use this function

        if ($result) {
          zen_record_admin_activity('Inserted manufacturer ' . addslashes($v_manufacturers_name) . ' via EP4.', 'info');
        }
> 
> I guess the record_admin_activity is inserting also, and probably that's the ID that the manufacturer_info gets.... 
> So the mysqli_insert_id($db->link) should be above that zen_record_etc function,,,,

Correct. The collection of the insertid should always be before any potential access of the database, which of course was supposedly already corrected, but apparently not. Will try to modify the location today, but if done earlier rather than later it will be directly in github which has the potential of being incorrectly typed because there is no copy and paste capability when directly entered. The fix path will be posted here for those stil using this.
5 Jul 2016, 9:55 AM
#2559
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

mc12345678:

Correct. The collection of the insertid should always be before any potential access of the database, which of course was supposedly already corrected, but apparently not. Will try to modify the location today, but if done earlier rather than later it will be directly in github which has the potential of being incorrectly typed because there is no copy and paste capability when directly entered. The fix path will be posted here for those stil using this.

If I remember well, looking at the file yesterday, the music related stuff it's also like this... and I think that's the only places that use this: manufacturers, and the music product type.

5 Jul 2016, 10:00 AM
#2560
mesnitu avatar

mesnitu

Totally Zenned

Join Date:
Aug 2014
Location:
Lisbon
Posts:
597
Plugin Contributions:
0

Re: EasyPopulate 4.0 Support Thread

mc12345678:

I expect that plugin to be available by the end of the weekend. Meanwhile I probably will submit a final version that incorporates the bug fixes of the last couple of pages and continue to support the community in other ways unless some compelling reason exists for two individuals to support two different plugins that ultimately do the same thing.

Sorry, those it means that EP4 will be discontinued ?