Yii Framework Forum: Database Exception - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Database Exception When clicking Preview Rate Topic: -----

#1 User is offline   darkluffy360 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 09-November 15

Posted 09 November 2015 - 01:49 AM

Hello guys, I'm new here and also new to yii. Apologies if this is the wrong section to post about this.

First of all, my details(I try to include as much as I can):
PHP 5.6.14
Oracle DB11G Enterprise Edition 11.2.0.1.0(Installed locally, default localhost setup)
Windows 7 64-Bit
Oci8-2.0.8-5.6-ts-vc11-x86
Yii 2.0.6


I am trying to use the gii module to generate some models for testing purpose(as I am fairly new to this framework). I have imported all the tables/data from my organization's database, and have create related tablespaces and users. So my generator have these autocompleted when i typed partial keywords.

Attached File  gii_model.png (153.25K)
Number of downloads: 4

Then when I clicked on preview button, i get this error below,

Attached File  exception.PNG (52.81K)
Number of downloads: 4

I believe the SYSTEM/SYSAUX are generated automatically when installing the oracle db. Plus, the autocomplete tables that appeared when I try to insert the table name is correct and same as the tables i have inside our schema. I tried changing the password/creds to be wrong as I cant access the gii page at all(so i believe the connection to my db setup is fine).

Can anyone help me. is it a known issue or i am doing something wrong? because as far as I understand, the error shown means that the generator is looking at a different place upon clicking the "preview" button.

Thank you.
0

#2 User is offline   darkluffy360 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 09-November 15

Posted 10 November 2015 - 07:05 AM

I cant really post any links since this is my first post, but i got help from StackOverflow.

Look for "Luqman Stackoverflow Database Exception" and see the same title as this thread for solution to this trouble.
0

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,694
  • Joined: 10-October 10
  • Location:Denmark

Posted 10 November 2015 - 07:30 AM

http://stackoverflow...nerator-on-yii2
"Less noise - more signal"
0

#4 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 10 November 2015 - 07:43 AM

Try with code from master.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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