CodeIgniter Forums
CodeExtinguisher 2.0 Release Candidate 14.2 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: CodeExtinguisher 2.0 Release Candidate 14.2 (/showthread.php?tid=8451)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-02-2008

[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.


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-02-2008

[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".


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-02-2008

[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


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-02-2008

[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.


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-03-2008

[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?


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-03-2008

[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...


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-03-2008

[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 "/"...


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-03-2008

[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.


CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-03-2008

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

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



CodeExtinguisher 2.0 Release Candidate 14.2 - El Forum - 06-03-2008

[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