Yii Framework Forum: Updated Xampp Windows => Now Serveral Problems - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Updated Xampp Windows => Now Serveral Problems Rate Topic: -----

#1 User is offline   taggert 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-September 13

Posted 04 November 2013 - 06:41 AM

Hi Guys,

I messed up my installation...
Maybe some of you can help me?

Used Yii 1.1.14 for testing.
(Nothing very important, just learning Yii)

Everything was running fine but I was using a pretty old xampp installation.
Somehow this morning I got the (bad) idea "hey, lets update xampp" ...

So I did the following:
- backup my htdocs
- made backup of mysql databases
- removed old xampp install
- installed new xampp from apachefriends.org installer including:
Apache 2.4.4, MySQL 5.6.11, PHP 5.5.3, phpMyAdmin 4.0.4)
- Restored my backups.

Database works - so far so good.
Now I fired up my yii-test application and got as response:

Quote


- some code -

Fatal error: Class 'someBehavior' not found in D:\xampp\htdocs\yii_framework\YiiBase.php on line 217


Then I thought maybe it is a good idea to create a fresh yii-app and track-down what happens wrong.
Fresh App seems to work.

Now I copied in a very simple stand alone test-module I wrote for understanding how things work.
Imported the module in main.php config.

'modules'=>array(	
  'myTestModule' => array()
),


And surfed to the module index.php ...
The index.php of the module contains several module-internal links.
I create the links inside the index.php like this:

<b>Events</b>
<ul>    
    <li><? echo CHtml::link('Event Form', Yii::app()->createUrl('myTestModule/event/create')); ?></li>
    <li><? echo CHtml::link('Manage Events', Yii::app()->createUrl('myTestModule/event/admin')); ?></li>
</ul>


... but instead of the links im getting now:

Quote

This is the view content for action "index".
The action belongs to the controller "DefaultController" in the "myTestModule" module.

You may customize this page by editing D:\xampp\htdocs\yii_test\protected\modules\myTestModule\views\default\index.php

Events

createUrl('myTestModule/event/create')); ?>
createUrl('myTestModule/event/admin')); ?>


... so everything after "Yii::app()->" is printed out as normal text.
(In the "main application" it works without problems...)

Next thing:
When I go directly to, for example, "localhost/yii_test/index.php?r=myTestModule/event/admin

I'm getting as output:

Quote

-- the php code of the "event" model --

and message:

Fatal error: Class 'Event' not found in D:\xampp\htdocs\yii_test\protected\modules\myTestModule\controllers\EventController.php on line 14


In line 14 of EventController is only:

    public function actionAdmin(){
  		$model=new Event('search');
        
		if(isset($_GET['Event']))
			$model->attributes=$_GET['Event'];
        
		$this->render('admin',array(
			'model'=>$model,
		));
    }


...
Can someone help me to fix this problem?
Or do I have to do a rollbag to the old installation?
(have a second machine here with old installation ... the whole thing is working fine there)
Is it possible that something is now wrong in my php.ini?
And this is just a small little setting that I have to make?

Any help very appreciated.

Regards
0

#2 User is offline   taggert 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 26-September 13

Posted 04 November 2013 - 07:31 AM

For other people facing this problems:

In php.ini I had to enable:

short_open_tag=On

Now everything is working like before.

Regards
0

Share this topic:


Page 1 of 1
  • 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