#1 2010-12-11 19:57:54

Yuka
Member
Registered: 2010-11-17
Posts: 2

Can't add media...

Hi, everybody !
First, Thanks for Ionize !

So... I want to add some medias to a page.
I tested on pictures. When I click on Add Media it's ok, I have the tinybrowser page.
Then I select a picture in the list -> nothing.
When I look at FireBug, Here is the php error :

<p>Message:  Undefined index: path</p>
<p>Filename: admin/media.php</p>
<p>Line Number: 494</p>

AND

<p>Message:  Undefined index: file_name</p>
<p>Filename: admin/media.php</p>
<p>Line Number: 496</p>

But it seems that the post value "path" is sent to server...

So I tried to see in tinymce code where does the problem come from... But I don't know which plugin of tinymce is used to display imagebrowser.

Can someone help me please ?
Bye Yuka

Offline

#2 2010-12-13 09:58:12

Yuka
Member
Registered: 2010-11-17
Posts: 2

Re: Can't add media...

Hi !
It's Ok ! I found the problem !
It comes from the SQL Request in media_model.
The field "date" of table "media" had no default value... So I put as default value : 0000-00-00 00:00:00 and now it works !
Bye !

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel , Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : www.ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Translations on GitHub