installed YUM on a simple default blog installation. Got everything up and running and have setup some sample users, but when I click "Upload avatar image" on the currently logged in user I get a 404 error:
not sure what’s going on, all of the other internal links/urls are working.
I have a problem with the user search and the pagination. I want to add a dropdownbox with the a new field (country) from the yum_profile table.
So i added a new dropdownbox with some countries and a join criteria (LEFT JOIN with yum_profile on user_id=id) and a where clause for yum_profile.country. The search works and only the users from the dropdownlist-country will be shown. Pagination works on the first site (result: 1-2 of 2) but when i click page 2 it will show all pages (1-4 of 4) and will ignore the country clause.
And how can i add a new sortableAtrribute "country"?
Thank you for your reply. YUM was installed on the 24th with the latest SVN download and used the wiki’s instructions. From the change log it looks like the most recent commits were on the 23rd so I believe I am using the most up to date source.
@chirvo: thx. i solved it with sessions now, with post it always lost the data and get is ugly
i have another problem: after i deleted a user it sets the status to -2 -> ok, but the email still remains in the system so you can not register with this email. is this a good logic? is there a workaround or should i clear the profile.email field after deleting a user?
Hello! First - thanks to the thyseus for this great work. It’s very impressive. Go on please!
At second - sorry for unfinished links in post. Engine of this site doesn’t allow me to post links because it’s “one of my first posts” (what’s an idiotic reason).
When i perform install YUM on clean webapp created by yiic,i met next troubles:
Why i see this default layout which doesnt have even meny to YUM functions? By calling _ttp://my_web_app/index.php i see next view:
If i’m not logged in, and i call _ttp://my_web_app/index.php?r=user/user/admin i go to the auth view and when i authenticate as admin/admin i see normal view:
_ttp://img96.imageshack.us/img96/6555/snap148.jpg
What’s wrong with invitation to friends? I’ve created another user, not superuser, with active status. And when i press on “Add as friend” (being on the page with his profile - _ttp://my_web_app/index.php?r=profile/profile/view&id=3), i get next error:
Error 404
Unable to resolve the request "profile/friendship/invite".
_ttp://img12.imageshack.us/img12/2687/snap149.jpg
I downloaded quite new version of framework - yii-1.1.10.r3566.tar.gz.
And also i use newest YUM - yii-user-management_0.8rc5
I found that in wiki installation instruction there is a text block:
Well, but how should be routing set up if i use clean webapp just "from the box"?
I’m upset with difficulties i confront, but probably i hope it’s me doing something wrong. But anyway coombination of Yii and Yum “as is” doesn’t work good in my case, as i described earlier. I wonder how other users don’t have same difficulties with this and I ask for some help, guys.
when i just created webapp with yiic, i took schema.mysql.sql from yii\demos\blog\www\protected\data\ and imported it into my database. But as it seems it doesn’t affect the YUM. I had only 5 tables with prefix “tbl” - “tbl_lookup”, “tbl_tag” and others. I deleted them and nothing happened so i think it’s not important, but anyway
# Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://yii-user-management.googlecode.com/svn/trunk/ yii-user-management-read-only
Now when i login as admin and go to _ttp://my_web_app/index.php?r=user/user/admin i get next error:
Fatal error: Call to a member function get() on a non-object in Z:\home\my_web_app\www\protected\modules\user\models\YumUser.php on line 365
Roger that. I will not use this schema from demo app, just follow YUM installation steps.
But what about routing?
how should be routing set up if i use clean webapp?
Routing is disabled at the default yiic webapp, but many people enable it right afterwards. With this note in the Documentation, both methods are covered.
Can you attach a full stack trace for the new error with the SVN version, please?
A quick recommendation: If you’re adopting YUM for your project and you just started with it please reinstall YUM, delete all the configuration you did, download it from the SVN repository and reconfigure it again.
And please stick to the instructions posted in the installation tutorial page on the project’s wiki. If you follow them to the letter you will have a 100% functional YUM installation in your project.