A PHP Error was encountered

Severity: Warning

Message: Creating default object from empty value

Filename: forum/mod.forum_core.php

Line Number: 1401

Products Forum 1970-01-01T00:00:00Z Copyright (c) 2011 ExpressionEngine tag:https:,2011:09:21 PHP Error Editing Entry tag:https:,2011:/www.cartthrob.com/forums/viewthread/.3644 2011-09-21T00:06:45Z 1970-01-01T00:00:00Z jerseyjones Okay My HTML looks good or so I believe.  it’s rather lengthy so I’ll spare everyone unless requested.
I have an Edit Entry page that calls a channel entry and enables editing. Everything looks good and when I het submit I get this :
___________
A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: checkboxes/ft.checkboxes.php

Line Number: 82
___________
A PHP Error was encountered

Severity: Notice

Message: Array to string conversion

Filename: libraries/Functions.php

Line Number: 1449
___________
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/content/79/8296179/html/tideland/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 393
_______________

I have a feeling that it’s something to do with my return=“template group/template/url_title” because any edits I made in the SAEF are being made even though I’m getting an error.

Any information would help.
Thanks
oh and i’m runing 2.2.2

]]>
safecracker in member profile theme tag:https:,2011:/www.cartthrob.com/forums/viewthread/.3587 2011-09-15T02:36:32Z 2011-09-15T03:38:36Z norris Hello guys,...i am currently working to add an entries in member profile theme. Can i use safeCracker in this area ? i want to add entry to a channel..please help me..thanks

]]>
“Wrong datatype for second argument”... tag:https:,2011:/www.cartthrob.com/forums/viewthread/.3003 2011-07-12T21:35:06Z 1970-01-01T00:00:00Z meredith I’m getting this error when trying to use safecracker…
A PHP Error was encountered

Severity: Warning

Message: in_array() [function.in-array]: Wrong datatype for second argument

Filename: libraries/safecracker_lib.php

Line Number: 761


Fatal error: [] operator not supported for strings in /nfs/c03/h01/mnt/52502/domains/krossinkeuka.org/html/sys/expressionengine/third_party/safecracker/libraries/safecracker_lib.php on line 763

The safecracker section of my template is as follows:
{exp:safecracker channel="sponsor" author_id="CURRENT_USER" limit="1" dynamic_title="[sponsor_name]"}
      <input type=“hidden” name=“title” id=“title” value=”{title}”>
      <input type=“hidden” name=“url_title” id=“url_title” value=”{url_title}”>
      <input type=“hidden” name=“entry_date” id=“entry_date” value=”{entry_date format="%Y-%m-%d %g:%i"}”>
      <input type=“hidden” name=“sponsor_participant” id=“sponsor_participant” value=”{segment_2}”>
 
      <tr>
        <td>
        <label for=“sponsor_name”>Your Name <span class=“asterisk”>*</span></label>
        <input type=“text” name=“sponsor_name” id=“sponsor_name” value=”{sponsor_name}”>
        </td>
       
        <td>
        <label for=“sponsor_email_address”>Email Address <span class=“asterisk”>*</span></label>
        <input type=“text” name=“sponsor_email_address” id=“sponsor_email_address” value=”“>
        </td>
       
        <td>
        <label for=“sponsor_amount”>Amount: <span class=“asterisk”>*</span></label>
        <input type=“text” name=“sponsor_amount” id=“sponsor_amount” value=”{sponsor_amount}”>
        </td>
       
        <td>
        <input type=“submit” name=“submit” value=“Submit” class=“button”>
        </td>
       
      </tr>
      {/exp:safecracker}

]]>
Using exp:search:simple_form to return data from a Catchall field? tag:https:,2011:/www.cartthrob.com/forums/viewthread/.2806 2011-06-23T02:06:01Z 1970-01-01T00:00:00Z bseymore Does anything special need to be done when using an {exp:search:simple_form} to get data contained in a Catchall field?

The field is set to Searchable but when I search for a word I know appears in one of my fields, the no results message is returned.

This is with ExpressionEngine 2.1.4. We’ll update to ExpressionEngine 2.2.0 within the next few days.

]]>
After moving hosts he tag exp:safecracker started to output only javascript tag:https:,2011:/www.cartthrob.com/forums/viewthread/.2798 2011-06-22T17:49:55Z 2011-06-22T19:12:25Z Laisvunas Hi,

Any idea why after moving a site from one host to another the tag exp:safecracker started to output only javascript?

Consider such code:

{exp:safecracker channel="ebook_common" return="technical/test15"}

<p>Title<br />
<
input type="text" name="title" id="title" value="{title}" size="50" maxlength="100"></p>

<
p>URL Title<br />
<
input type="text" name="url_title" id='url_title' value="{url_title}" maxlength="75" size="50" /></p>

<
label for="categories">Categories</label>

<
select name="category[]" id="categories" size="4" multiple="multiple">
    
{categories}
        
<option value="{category_id}"{selected}>{category_name}</option>
    
{/categories}

</select>

<
p>Project Title<br />
<
input type="text" name="project_title" id='project_title' value="{project_title}" maxlength="75" size="50" /></p>

<
p><input type="submit" name="submit" value="Submit" />

{/exp:safecracker} 

This code outputs:

script type="text/javascript" charset="utf-8" src="http://www.antiquityillustrated.com/index.php?ACT=48&amp;ui=core,widget,mouse,position,draggable,resizable,button,dialog,datepicker&plugin=scrollable,scrollable.navigator,ee_filebrowser,markitup,thickbox&amp;v=1292840586&amp;use_live_url=y&amp;include_jquery=y">[removed]
script type="text/javascript" charset="utf-8">
// <![CDATA[
$(document).ready(function() {
    
if (typeof SafeCracker == "undefined" || ! SafeCrackervar SafeCracker {markItUpFields:{}};}
    
$.datepicker.setDefaults({dateFormat:$.datepicker.W3C+EE.date_obj_time});
    $.
datepicker.setDefaults({defaultDate: new Date(1308724328000)});
});
// ]]>
< /script>
<
style type="text/css">.hasDatepicker{background:#fff url(http://... 

There is channel ebook_common, there are fields in that channel, Safecracker is installed. I tried to uninstall and reinstall Safecracker, but it did not help.

Thanks.

]]>
SafeCracker form relative path with SafeCracker File tag:https:,2011:/www.cartthrob.com/forums/viewthread/.2677 2011-06-06T19:04:22Z 1970-01-01T00:00:00Z Andrew Philpott Is it possible to use a relative path with a SafeCracker File field in a Safecracker form? I typically use a “../images” path setup, but I just discovered that I get an error unless I set an absolute path.

The error I’m getting is “Upload path does not appear to be valid.”

]]>
How to tell if a field is required without the {custom_fields} loop? tag:https:,2011:/www.cartthrob.com/forums/viewthread/.2665 2011-06-03T19:38:26Z 1970-01-01T00:00:00Z Blatant Hi,

I have begun using SafeCracker for a multitude on member accessible forms, so that only selected fields are displayed (others are for admin purposes) and because the documentation states that the custom_fields loop is weak, I am not using the {custom_fields} loop but instead am using {field:field_name} and {fieldname} tags to display and populate my forms.

However I can not find in the documentation or forum how to tell if a field is required without using the custom_fields loop. I understand I can get the label: instructions: and error:(s) but as I understand it there is not a {required:field_name} tag.

Can anyone help?

If I have to rebuild my forms with the loop it will take a while hence why I’m asking here first.

Many Thanks,

Blatant (Danny)

]]>
dynamic_title parameter creating php errors!!! tag:https:,2011:/www.cartthrob.com/forums/viewthread/.2581 2011-05-25T08:44:04Z 1970-01-01T00:00:00Z mattthompson I just did a complete reinstall of EE with a brand new database because I was experiencing php errors after I tried to use dynamic_title in SafeCracker.  After reinstall things were working fine until I tried to use dynamic_title.  I get these php errors:

A PHP Error was encountered

Severity
User Warning

Message
unexpected operator '+'

Filenamelibraries/Evalmath.php

Line Number
361

A PHP Error was encountered

Severity
Warning

Message
Cannot modify header information headers already sent by (output started at /home/native5/public_html/buybees/nb_admin/codeigniter/system/core/Exceptions.php:170)

Filenamecore/Common.php

Line Number
405


Fatal error
ob_start() [<a href='ref.outcontrol'>ref.outcontrol</a>]Cannot use output buffering in output buffering display handlers in /home/native5/public_html/buybees/nb_admin/codeigniter/system/core/Exceptions.php on line 166 

Im not sure if this is because I was using a select_dropdown field as my custom field to generate the dynamic_title or what.  I realize that these are php errors maybe unrelated to SC but I already tried posting my first php errors to EE Forums (see thread here) and I am getting no help there.  Now my site is messed up again because I removed dynamic_title and went back to a simple SC form and now I get these same errors no matter what (both on new entry and edit).

I really need to be able to use SafeCracker and use dynamic_title.

HELP PLEASE!!!

]]>
safecracker as member, admin or guest tag:https:,2011:/www.cartthrob.com/forums/viewthread/.2405 2011-05-05T16:47:27Z 1970-01-01T00:00:00Z marcus I have a Safecracker form thatâ??s works fine when I logged in as admin or not logged in add all, can I place an entry. But when I logged in as a member the form isnâ??t working (I see nothing) has anybody have a explanation?

{exp:safecracker channel="{channel}" return="/news" entry_id="{segment_3}" author_only="yes" name="myform" author_id="CURRENT_USER"
]]>
SafeCracker and foreign_character_conversion_array tag:https:,2011:/www.cartthrob.com/forums/viewthread/.2334 2011-04-25T15:11:38Z 1970-01-01T00:00:00Z Maxim Stoun Good day.
I try to use SafeCracker with foreign_character_conversion_array (config/foreign_chars.php)
In CP all good work (all chars in Title convert into Url_title)
But in SafeCracker page it is’n work (only english chars in Title convert into Url_title)
Is there any way to use config/foreign_chars.php with SafeCracker ?
Thanks.

]]>