Welcome Guest, Not a member yet? Register   Sign In
CodeExtinguisher 2.0 Release Candidate 14.2

[eluser]Donald Hughes[/eluser]
Figured it out. Same bug I reported for rc13 regarding date.php (I just forgot about it):

The month and day values should be wrapped with intval() to prevent days and months with a leading 0 (as in 05) from being treated as octal values. I added the intval() to my local copy of ‘date.php’ and the errors went away.

[eluser]Donald Hughes[/eluser]
Unfortunately, I'm still having my original problem where trying to edit the record just seems to revert to adding a new record.

The system seems to create the proper url: "/backend.php/news/manage/edit/3" (where 3 is the correct id), but the displayed form is blank and is titled "Add a new item".

[eluser]Donald Hughes[/eluser]
More info:

In the iterate function of codexforms.php, I get the following error for each of my fields if I try to echo out $param_array[$field]:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: start_date
Filename: libraries/codexforms.php
Line Number: 234

[eluser]daulex[/eluser]
this is weird:
I drop a fresh codeigniter into a folder, drop a fresh codex into the folder, run the installer, click the final yes, and backend.php starts crying Smile
check this out:
Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Image::$params

Filename: plugins/image.php

Line Number: 38
A PHP Error was encountered

Severity: Warning

Message: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

Filename: plugins/image.php

Line Number: 38
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Image::$params

Filename: plugins/image.php

Line Number: 48
A PHP Error was encountered

Severity: Warning

Message: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object

Filename: plugins/image.php

Line Number: 48
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Image::$config

Filename: plugins/image.php

Line Number: 48

Fatal error: Call to undefined method Image::setWrappers() in D:\xampp\htdocs\cx\codex\application\libraries\codexforms.php on line 58

and yes, 100% fresh install.

[eluser]abmcr[/eluser]
daulex: are you try with the latest version? are you under a XAMPP local machine? If yes try with VertrigoServer.
Donald Hughes: the field in the database is formated as date?

[eluser]daulex[/eluser]
abmcr, I did the same on my server and it seems to be fine, I wonder why xampp doesn't like it...

[eluser]abmcr[/eluser]
[quote author="daulex" date="1212502819"]abmcr, I did the same on my server and it seems to be fine, I wonder why xampp doesn't like it...[/quote]
I think there is a problem with "\" and "/"...

[eluser]Donald Hughes[/eluser]
[quote author="abmcr" date="1212491630"]
Donald Hughes: the field in the database is formated as date?[/quote]

Yes, it's a mysql datetime field. I'm just saving the datepicker's value.

[eluser]abmcr[/eluser]
no datetime..... it must be date: see the sql file attached to the zip file

Code:
...
`date_test` date NOT NULL,

[eluser]daulex[/eluser]
ok, this is funny, after a default install, go into the related example, post anything and boom:
Code:
<select name="view_mode">
                    index.htmltable.php<option value="table.php"<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: Notice</p>
<p>Message:  Undefined index:  filename</p>
<p>Filename: default/codex_choosers.php</p>
<p>Line Number: 16</p>

</div><div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: Notice</p>

<p>Message:  Undefined index:  filename</p>
<p>Filename: default/codex_choosers.php</p>
<p>Line Number: 17</p>

</div>></option>                </select>

help me oh wise ones Smile




Theme © iAndrew 2016 - Forum software by © MyBB