Yii Framework Forum: Yiiframework.co.il Code is now open sourced! - Yii Framework Forum

Jump to content

  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Yiiframework.co.il Code is now open sourced! Rate Topic: ***** 4 Votes

#41 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 08 June 2011 - 04:33 AM

I see a lot of people are having problems with the sessions.

Maybe you should try this:

In the .htaccess file make sure to remove the following:

# No subdomain, redirect to subdomain
RewriteCond %{HTTP_HOST} ^yiiframework.co.il$ [NC]
RewriteRule ^(.*)$ http://he.yiiframework.co.il/$1 [R=301,L]

# WWW to subdomain
RewriteCond %{HTTP_HOST} ^www.yiiframework.co.il$ [NC]
RewriteRule ^(.*)$ http://he.yiiframework.co.il/$1 [R=301,L]


Obviously this will not work in your case.

Then in the protected/config/main.php file

You should see several occurrences of the following:


'domain' => '.' . $current_domain


Unless your testing this under a sub domain you should replace every occurrence of the above code to the following:

'domain' => $current_domain


By just removing the dot infront of the domain name the session should work. But still i am not sure if this will work under 'localhost' as the domain so you should try setting up a virtual host in any case.

Hope that helps.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#42 User is offline   Ray Kwok 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 38
  • Joined: 14-October 09

Posted 10 October 2011 - 09:50 PM

Good application!
Is there any update?
0

#43 User is offline   k42ban 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 04-October 11

Posted 12 October 2011 - 10:21 AM

Thanks for this Yii codes. It helped me a lot.
0

#44 User is offline   phenomfx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 19-May 11

Posted 15 March 2012 - 01:47 PM

help me. i can't login user admin .

INSERT INTO `members` (`username`, `email`, `password`, `joined`, `role`) VALUES ('admin', 'admin@admin.com', 'a95d69667de20f113fb11e1d6605ab1367c8eabd', 1272716496, 'admin');


i login admin@admin and password admin .
0

#45 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 15 March 2012 - 02:08 PM

View Postphenomfx, on 15 March 2012 - 01:47 PM, said:

i login admin@admin and password admin .

What for?
Log in with 'admin' - 'admin'.
"Less noise - more signal"
0

#46 User is offline   Sampa 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 173
  • Joined: 18-December 11
  • Location:Stockholm,Sweden

Posted 16 March 2012 - 05:52 AM

thank you so much for sharing:) I will for sure "borrow" some parts of it:D
0

#47 User is offline   SnIpY 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 01-March 12

Posted 17 March 2012 - 07:32 AM

Hmm, i'm having some issues... When clicking on a user profile or on a blogpost, I get this error: Error
Sorry, But the page you were looking for was not found.

I seem to get this error whit every page that uses the alias
0

#48 User is offline   zebra 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 46
  • Joined: 04-March 12

Posted 17 March 2012 - 02:20 PM

Vince, you talked about "Dashboard" in your first post. Could you explain (just a few words) what a dashboard in your eyes is? And where can I find it in the demo?

Thx
0

#49 User is offline   yuran 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 18-March 12
  • Location:Russia

Posted 18 March 2012 - 04:34 PM

Login - admin@admin.com pass:admin
Login - admin pass:admin

does not work!!!


CException

Sorry, You are not allowed to enter this section

Help me please....
0

#50 User is offline   yuran 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 18-March 12
  • Location:Russia

Posted 18 March 2012 - 04:46 PM

id username seoname email password joined passwordreset data role ipaddress fbuid fbtoken fb_uid
1 admin admin vadimg88@gmail.com 898ea48603ae634a5548c06cb2cae2a837edb641 1332104151 NULL NULL Admin 0 NULL
2 admin admin@admin.com 1b59f198918e701060615d9433028f620efadbad 1272716496 NULL NULL admin 0 NULL
0

#51 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 21 March 2012 - 09:57 PM

admin/admin should work/ Try getting a fresh copy from code.google.com and insert the admin row again see if that works.
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#52 User is offline   yuran 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 18-March 12
  • Location:Russia

Posted 22 March 2012 - 02:39 AM

So where is the latest stable version at code.google.com or github?
0

#53 User is offline   yuran 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 18-March 12
  • Location:Russia

Posted 22 March 2012 - 06:51 AM

CREATE TABLE IF NOT EXISTS forumtopics(

id INT( 10 ) NOT NULL AUTO_INCREMENT ,
title VARCHAR( 125 ) NOT NULL DEFAULT '',
alias VARCHAR,
dateposted INT( 10 ) NOT NULL DEFAULT '0',
authorid INT( 10 ) NOT NULL DEFAULT '0',
languageCHAR( 3 ) NOT NULL DEFAULT '',
views INT( 10 ) NOT NULL DEFAULT '0',
replies INT( 10 ) NOT NULL DEFAULT '0',
lastpostdate INT( 10 ) NOT NULL DEFAULT '0',
lastpostauthorid INT( 10 ) NOT NULL DEFAULT '0',
visible TINYINT( 1 ) NOT NULL DEFAULT '0',
content TEXT NULL ,
PRIMARY KEY ( id ) ,
KEY title( title ) ,
KEY alias( alias ) ,
KEY language( language ) ,
KEY lastpostdate( lastpostdate ) ,
KEY dateposted( dateposted )
) ENGINE = INNODB
Ответ MySQL:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
dateposted int(10) NOT NULL default '0',
authorid int(10) NOT NULL default ' at line 5
0

#54 User is offline   Vince. 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 432
  • Joined: 29-December 08
  • Location:Los Angeles,CA

Posted 22 March 2012 - 10:27 AM

Change the above

alias VARCHAR,

to

alias VARCHAR(125) NOT NULL default '',
Vince Gabriel, Lead Developer.
Posted ImagePosted ImagePosted Image
0

#55 User is offline   yuran 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 18-March 12
  • Location:Russia

Posted 22 March 2012 - 01:10 PM

CREATE TABLE IF NOT EXISTS extensionscomments(

id INT( 10 ) NOT NULL AUTO_INCREMENT ,
postid INT( 10 ) NOT NULL DEFAULT '',
authorid INT( 10 ) NOT NULL DEFAULT '0',
postdate INT( 10 ) NOT NULL DEFAULT '0',
visible TINYINT( 1 ) NOT NULL DEFAULT '0',
COMMENT TEXT NULL ,
PRIMARY KEY ( id ) ,
KEY postid( postid ) ,
KEY authorid( authorid )
) ENGINE = INNODB;

Ответ MySQL:

#1067 - Invalid default value for 'postid'
0

#56 User is offline   yuran 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 18-March 12
  • Location:Russia

Posted 22 March 2012 - 01:12 PM

CREATE TABLE IF NOT EXISTS usercomments(

id INT( 10 ) NOT NULL AUTO_INCREMENT ,
userid INT( 10 ) NOT NULL DEFAULT '',
authorid INT( 10 ) NOT NULL DEFAULT '0',
postdate INT( 10 ) NOT NULL DEFAULT '0',
visible TINYINT( 1 ) NOT NULL DEFAULT '0',
COMMENT TEXT NULL ,
PRIMARY KEY ( id ) ,
KEY userid( userid ) ,
KEY authorid( authorid )
) ENGINE = INNODB;

Ответ MySQL:

#1067 - Invalid default value for 'userid'
0

#57 User is offline   bennouna 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,166
  • Joined: 05-January 12
  • Location:Morocco

Posted 22 March 2012 - 03:03 PM

…
postid INT( 10 ) NOT NULL DEFAULT '0',
…
userid INT( 10 ) NOT NULL DEFAULT '0',

0

#58 User is offline   yuran 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 18-March 12
  • Location:Russia

Posted 24 March 2012 - 11:54 AM

CException

Sorry, You are not allowed to enter this section.

Help please

ID username email password joined role
1 admin admin@admin.com a95d69667de20f113fb11e1d6605ab1367c8eabd 1272716496 admin
0

#59 User is offline   SnIpY 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 01-March 12

Posted 25 March 2012 - 01:42 PM

View Postyuran, on 24 March 2012 - 11:54 AM, said:

CException

Sorry, You are not allowed to enter this section.

Help please

ID username email password joined role
1 admin admin@admin.com a95d69667de20f113fb11e1d6605ab1367c8eabd 1272716496 admin


I suggest you read up some more about how Yii works in general... All of your errors were fairly easy to fix, would be nice if you did some effort yourself :/
0

#60 User is offline   yuran 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 18-March 12
  • Location:Russia

Posted 25 March 2012 - 03:01 PM

But what exactly should I do? I have so far only been studying yii...
0

Share this topic:


  • (6 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users