Closed (fixed)
Project:
Simplenews Statistics
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
31 Dec 2011 at 11:03 UTC
Updated:
25 Jun 2012 at 13:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirCross-referencing #1390182: Add change notice and update simplenews_mail() documentation
Comment #2
weseze commentedThe current 7.x version is not supported anymore. The people who did the port to D7 have (I think) abondened it... I will personally be picking up a D7 version in the near future, but it will probably not be compatible with the current 7.x release. Keep that in mind.
Untill then there is no working release for Simplenews Statistics in D7. Sorry...
Comment #3
berdir@weseze: Feel free to ping me if you need anything in regard to Simplenews 7.x-1.x.
Comment #4
r0bm1lls commentedThis is a very useful module and, I believe, essential for any well designed newsletter/mailshot system. I really look forward to a working D7 version. It will make a big difference to sites I manage. May "The Force" speed its incarnation!
Comment #5
weseze commentedComment #6
pavel.karoukin commentedPatch attached to make it work with current D7 version of simplenews. Using it in production.
Comment #7
pavel.karoukin commentedComment #8
berdirPatch looks good to me.
Comment #9
r0bm1lls commentedApplied patch on latest version and all looks good to me... except the number of opens does not always show up in the newsletter overview (admin/content/simplenews) When you click the stats link the open show - Not sure if this has anything to do with the stats module.
Comment #11
weseze commentedWe simply need to port the current D6 version to D7, because the 2 versions are completely out of sync. D6 has more features, views integration, ... So we need to (or more to the point: I need to ;)) shift towards developing for D7 and backporting to D6.
Comment #12
pomliane commentedThis error message in logs excepted, #6 seems ok here:
PDOException : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1330621183' for key 'PRIMARY': UPDATE {simplenews_statistics_opens} SET opens=:db_update_placeholder_0, timestamp=:db_update_placeholder_1 WHERE (nid = :db_condition_placeholder_0) AND (email = :db_condition_placeholder_1) ; Array ( [:db_update_placeholder_0] => 5 [:db_update_placeholder_1] => 1330621183 [:db_condition_placeholder_0] => 20 [:db_condition_placeholder_1] => mail@example.com ) in simplenews_statistics_view() (line 104 in /modules/simplenews_statistics/simplenews_statistics.module).Comment #13
socialnicheguru commentedthis patch doesn't fix the pdo error
Comment #14
jjchinquistThis issue has a better title. It is a duplicate of http://drupal.org/node/1502736. Continuing development on this issue.
The attached patch is based off of a fresh 6.x-3.x.-dev release as of April 20, 2012. Any changes to 6.x-3.x-dev must still be ported to this D7. The patch though defines the changes between the last 7.x-1.x-dev release.
Comment #15
jjchinquistDisregard the last patch.This one incorporates all 6.x-3.x-dev updates from the last several weeks. It is built on top of patch 14 though, sorry for that error.Comment #16
socialnicheguru commentedso do we not use patch 14 before we apply 15?
do the patches apply to the D7 dev version?
Downloaded d7 and applied patches:
patch 15:
git apply simplenews-statistic-upgrade-1390184-16.patch
fatal: corrupt patch at line 1112
patch 14:
simplenews_statistics$ git apply simplenews-statistic-upgrade-1390184-14.patch
simplenews-statistic-upgrade-1390184-14.patch:1060: trailing whitespace.
simplenews-statistic-upgrade-1390184-14.patch:1077: trailing whitespace.
db_update('simplenews_statistics')
simplenews-statistic-upgrade-1390184-14.patch:1078: trailing whitespace.
->fields(array(
simplenews-statistic-upgrade-1390184-14.patch:1079: trailing whitespace.
'send' => ((int) $result->send) + 1,
simplenews-statistic-upgrade-1390184-14.patch:1080: trailing whitespace.
))
error: patch failed: LICENSE.txt:1
error: LICENSE.txt: patch does not apply
error: patch failed: simplenews_statistics.info:1
error: simplenews_statistics.info: patch does not apply
Comment #17
jjchinquistI had made a mistake in how I committed the patches. Unfortunately the port to D7 is almost done, but the D6 version continues to evolve and it is difficult to coordinate.
Apply the patches in this order
simplenews-statistic-upgrade-1390184-14.patch
1390184-simplenews-statistic-upgrade-16.patch
Please give me feedback if the patches work - I will contact the maintainer again this week.
Comment #18
weseze commentedI can not apply these patches... getting lots of errors. Could you provide your entire 7.x version? You can post it here or mail it to me.
D6 version will not "evolve" anymore, the views integration was the last step. From now on only bugfixes will make it in to D6 version.
Comment #19
jjchinquistCertainly, this does get annoying that EGIT does not properly create and apply patches (at least I cannot get it to function 100%). Time to admit defeat and switch to TortoiseGIT or to a different GIT interface :)
ZIP attached.
Comment #20
bjlewis2 commentedIf you're on windows, check out msysgit. (Check out this video on Build a Module.com... Or smart git for Mac here's a video for smart git)
Comment #21
r0bm1lls commentedGave the code in #19 a try on my D7 site with latest version of simplenews. Looking good!
Comment #22
bjlewis2 commentedHere's a patch that updates the current 7.x release in Git to the module posted in #19.
Comment #23
jjchinquistthanks bjlewis2!
Comment #24
jjchinquistfinally had a few minutes to check the patch... it is only a partial patch of the module root directory. All sub-directories and moved files are missing.
Comment #25
bjlewis2 commentedOops, I'll get a new patch out later today.
Comment #26
bjlewis2 commentedHere's the updated patch. When I tested it, git said there were trailing white spaces, but I didn't see them, so if you know how to fix them, please do! (Or better yet, if I've made a common mistake, let me know so that I can avoid it in the future)
Comment #27
jjchinquistpatch looks great to me bjlewis2 - thanks again!
Weseze, can you please commit? In addition to a dev site, I already have the module + patch installed on 2 prod sites and patch works fine, looking into a 3rd.
Lets get it out the door so I can start on some minor issues and updates for D7 and D6 :).
Comment #28
weseze commentedI'll take a look at it today and try and start up the d7 branch again.
Comment #29
weseze commentedOK I have reviewed the patch and comitted it to the D7 branch. There are still lots of things todo but I belive we have a solid foundation to work from here. Hopefully this wil speed up D7 development!
Todo's for the D7:
Would be great if someone (or multiple people) could step forward and create seperate issues for these!
Comment #30
jjchinquistThanks a lot for the commit. I will now look at the issue queue - and create separate issues for each of the points you discussed. I plan to reply once more (hopefully today) when I have download the committed version and tested that it is ok.
Comment #31
jjchinquistI have tested on 3 websites. From my end, this should be closed.
Comment #32
r0bm1lls commentedI also have it running successfully on two sites. Looks good although I can't say I have worked through every aspect.
Comment #33
weseze commentedMarking this as fixed. The port is done, all other issues can be fixed in seperate issues.