Closed (fixed)
Project:
SMS Framework
Version:
7.x-1.x-dev
Component:
SMS User
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2011 at 14:27 UTC
Updated:
12 Jun 2014 at 02:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Iulian Arcus commentedComment #2
themaurice commentedHi, I'm agree, the user module doesn't work at all.
Warning: Parameter 1 to sms_user_load() expected to be a reference, value given in DrupalDefaultEntityController->attachLoad() (line 334 of C:\Program Files\EasyPHP-5.3.3\www\xxxxxxx\includes\entity.inc).
Is there somebody have and idea to patch that ?
By advance thanks.
Cheers,
Gilles
Comment #3
themaurice commentedHi,
I get also those error :
Warning: Parameter 1 to sms_user_settings_add_form() expected to be a reference, value given in drupal_retrieve_form() (line 773 of C:\Program Files\EasyPHP-5.3.3\www\mysite\includes\form.inc).
Warning: Parameter 1 to sms_user_settings_sleep_form() expected to be a reference, value given in drupal_retrieve_form() (line 773 of C:\Program Files\EasyPHP-5.3.3\www\mysite\includes\form.inc).
and only this text show on mobile page : ArrayArray
Anyway it's seem to be a problem of php reference with the "&" before some variable, I try some modification on sms_user.module without success.
Anybody could provide some help to solve that will be appreciate.
Cheers,
Gilles
Comment #4
Anonymous (not verified) commentedany progress on this issue?
Comment #5
themaurice commentedHi,
I'm not solve this problem and finally not use this functionality.
Comment #6
mcpuddin commentedI've cleaned up SMS User to be Drupal 7 compatible, at least for my workflow of sending text messages.
Comment #7
mcpuddin commentedJust as note, I've closed #795202: Port sms framework project to D7 since the d7 port of smsframework works, but sms_user does not. After reading through its log... there are different versions of the d7 port of sms_user:
If you are looking at solving immediate issues that are only bug fixes with no additional features, I highly recommend doing my patch above, best bang for your time.
Comment #8
mcpuddin commentedComment #9
NROTC_Webmaster commentedI can upload a patch that enables most of the functionality tomorrow. I will try to apply it after your patch so anything you did isn't broken by my patch.
Comment #10
mcpuddin commentedNROTC_Webmaster, my patch should have fixed everything for D7. If possible lets focus on the minimalist amount of issues to be fixed so it can be put into dev ASAP. The more code there is the more needs to be reviewed , and the longer we have a broken dev copy out there.
If you can, just review my code and mark it as reviewed. If you feel like it is insufficient, please do send it back with your fixes, but lets leave any additional features out for now.
Comment #11
NROTC_Webmaster commentedI only made a couple changes the biggest was updating to db_delete for sms_user_delete. Also the patch is applied to the current version.
Comment #12
mcpuddin commentedThank you so much for applying my patch to yours, makes my life so much easier! I will review today and see if it needs any more adjustments.
Comment #13
mcpuddin commentedI reviewed and I really like how you supported deletion the D7 way and got rid of all the @todos
I did remove a piece of your code which was dependent on a hook_token implementation. I'm not very familiar with it, so I just appended the "code" to the end of the string ( which I noticed you cleaned up a bit as well ). However, I removed the token replacement as it is no longer necessary.
Can you take a quick glance at my patch and confirm?
Thanks!
James
Comment #14
mcpuddin commentedSpecifically the only change in my rework of your patch is:
Comment #15
NROTC_Webmaster commentedYour changes look good to me for a first start. As you said we can work on additional functionality later but I think it is important for this project to get the basics working. I don't know if you use it or not but I have also posted the latest work I have been doing on the sms_email_gateway and the integration for messaging_sms which was removed on the upgrade to D7.
Can this be RTBC or do you want to wait on input from others?
Comment #16
mcpuddin commentedI'd say RTBC this one, these patches are long over due.
For your other patches, I'd say create separate issue for each submodule. Thats what I did with the sms blast module: http://drupal.org/node/1449660
Comment #17
NROTC_Webmaster commentedFor sms_email_gateway it is http://drupal.org/node/1289928 and for the messaging_sms it was in there before but they removed it on the upgrade. I added an issue to the queue but do you think it is worth having a separate module just for that?
Comment #18
mcpuddin commentedThanks for reviewing it, all up to univate now!
As for your sms_email_gateway, its marked in D6, i could test it if it was in D7.
As for messaging_sms, was that a separate module or in sms_user? If it was a separate module, just create a new ticket. Lets do this revamp step by step. If it was part of sms_user, create a new ticket called like "restore messaging_sms back to sms_user" and mark it as the SMS User component.
If we put anything else in this one, it'll be way to intimidating for anyone to test and review and they'll get lost. This ticket is for base base base D7 fixes so its no longer DOA.
Comment #19
NROTC_Webmaster commentedfor the email gateway it is marked as D6 only because it doesn't have the d7 option yet. The uploaded file is for D7.
messaging_sms was a sub folder in the messaging module not sms_user.
Comment #20
mcpuddin commentedAh, in the case I would create 2 new tickets for each.
Comment #21
mfb#13 had a problem with hooks: sms_user_delete() and sms_user_logout() act as hook_user_delete() and hook_user_logout() for sms.module, so these functions need to be renamed.. This patch contains some proposed new names.
Also, I added a hook_tokens() and hook_token_info(). The token support should be worked on further, but I wanted to upload what I have so far since I'm not sure when I'll have time to clean it up..
I modified the SMS registration function to auto-confirm new users. This seems to be required for the welcome message functionality to work - SMS messages cannot be sent to unconfirmed numbers.
Comment #22
christianchristensen commentedUpdate the patch a little to display the proper token replacements in the collapsible dropdown (took inspiration for rendering from the token module replacements tree).
Comment #23
christianchristensen commentedOops - left a dpm in from debugging in previous patch...
Comment #24
christianchristensen commentedMore debug removal from previous patch and fix registration with SMS callback.
Comment #25
socialnicheguru commentedpatch does not apply cleanly
aegir@devmac:~/platforms/7/m/all/smsframework$ git apply smsframework-sms_user-upgrade-1247538-D7-24.patch
smsframework-sms_user-upgrade-1247538-D7-24.patch:346: trailing whitespace.
'name' => t('SMS User'),
smsframework-sms_user-upgrade-1247538-D7-24.patch:347: trailing whitespace.
'description' => t('Tokens related to SMS User.'),
smsframework-sms_user-upgrade-1247538-D7-24.patch:351: trailing whitespace.
'name' => t('Confirmation code'),
smsframework-sms_user-upgrade-1247538-D7-24.patch:355: trailing whitespace.
'name' => t('Mobile settings URL'),
smsframework-sms_user-upgrade-1247538-D7-24.patch:359: trailing whitespace.
'name' => t('Temporary password'),
error: patch failed: modules/sms_user/sms_user.info:8
error: modules/sms_user/sms_user.info: patch does not apply
aegir@devmac:~/platforms/7/m/all/smsframework$ patch -p1 < smsframework-sms_user-upgrade-1247538-D7-24.patch
patching file modules/sms_user/sms_user.admin.inc
patching file modules/sms_user/sms_user.info
Hunk #1 FAILED at 8.
Comment #26
NROTC_Webmaster commentedHere is an updated version of #24 without the whitespace at the end of a couple of the lines. SocialNicheGuru the patch in 24 applied for me so I don't know why it didn't work for you. Let me know if the new one applies or not.
Comment #27
zeezhao commentedPlease can someone post a fully-patched version of the whole working smsframework module? Thanks
Comment #28
NROTC_Webmaster commentedzeezhao,
Download the 7 dev version and then just apply the sms user patch to it. If you cannot apply a patch then I can post a zipped version for you.
Comment #29
zeezhao commentedWas patching also including this fix: http://drupal.org/node/1477744 but did not work, hence the reason to ask for a working version thanks. Please send it anyway.
It would be nice if official dev version gets updated.
Comment #30
mcpuddin commentedI don't believe #26 had node/1477744 to it.
I talked with univate and he said that he'd be ok with someone stepping up as the Drupal 7 admin:
http://drupal.org/node/1565598
I haven't tested #26 in awhile, zeezhao can you mark it as "reviewed & tested by the community"
Comment #31
Nigeria commentedCould I get a zipped version too. I can test it on a real system immediately.
Comment #32
NROTC_Webmaster commentedFor those who are not necessarily concerned with following the repository here is a heavily modified version that should have most of the functions working to some extent. I do not use some of them and others are incomplete but I feel it is a good start. Feel free to post additional changes as you make them.
Comment #33
univate commentedI couldn't get the patch in #26 to apply. But I took the file in #32 and converted into a patch.
Comment #34
univate commentedcommitted a couple of other simpler bugs, so re-rolling this patch.
Comment #35
Anonymous (not verified) commentedciao Univate,
I'm tryng to patch against git repo 7.x-1.x but I got following reject:
***************
*** 211,217 ****
// Or render a status code from a simple true/false result
if (! $status) {
if ($options['result']) {
- $status = SWS_GW_OK;
}
else {
$status = SMS_GW_ERR_OTHER;
--- 211,217 ----
// Or render a status code from a simple true/false result
if (! $status) {
if ($options['result']) {
+ $status = SMS_GW_OK;
}
else {
$status = SMS_GW_ERR_OTHER;
After the patching I got also following error:
Call to undefined function sms_carriers() in /smsframework/sms.admin.inc on line 151
Anyway, I succesfully sent sms to mobile phone. Thanks a lot for your great work!
Comment #36
NROTC_Webmaster commentedgiorez,
Make sure you are always patching against the dev versions and not the stable ones.
Comment #37
Anonymous (not verified) commentedciao NROTC,
I'm patching against git repository 7.x-1.x. (refs/heads/7.x-1.x) (origin/7.x-1.x). I can't see any dev version in the 7 branch as shown in the attached image. Sorry I'm not good in git usage.
I also tried to patch against http://ftp.drupal.org/files/projects/smsframework-7.x-1.x-dev.tar.gz, but the patch is failing because some extra text like "; Information added by drupal.org packaging script on 2012-05-10" into the .info files.
Any suggestion?
thanks in advance
Comment #38
cashwilliams commentedpatch in #34 doesn't apply, probably just needs to be rerolled.
Comment #39
mcpuddin commentedI also had the same problems when I tried to apply the patches to the downloadable versions. However, when I checked it out from GIT it worked .. better:
I'm not very experienced on Drupal's automation process of creating the zips and .tar.gzs, but it seems like it injected a bunch of stuff which makes the patches incompatible. Take a look at this pastebin http://pastebin.com/jqG6VUgQ
I also cleaned up #34 a little bit by removing a fix to sms_track module which seemed to be already taken care of, and repackaged it.
I'm not sure why these patches don't work on the snapshot, however I'm trying to figure it out.
James
Comment #40
mcpuddin commentedI talked with some folks on IRC and they said just to use the git checkout instead of the snapshot.
Comment #41
mcpuddin commentedI was testing the patch and noticed there were a couple of problems
Other than that, the sms_user portion seems to works well. I have time this coming week to crunch this out if anyone else wouldn't mind jumping in and testing this piece.
James
Comment #42
mcpuddin commentedComment #43
socialnicheguru commented#39 links don't seem to work. did you mean
http://drupalcode.org/project/smsframework.git/
Comment #44
mcpuddin commentedHey Social Niche Guru, you have to run those via the command line with git. Take a look at http://drupal.org/node/707484
Comment #45
mcpuddin commentedAlright, this was just committed! Thanks guys for your hard work! If any more issues are discovered with it, please open up separate issues.