1 users online. Create an account or sign in to join them.Users

Search

Hi this is driving me bonkers, Ive created upload forms many times before so i cant see what im doing wrong here.

<input name="fields[file]" id="fields-file" title="" class="" type="file" value="" />

and when I submit my form the file field does not show up?

    <save-message id="110" result="success" type="created">
        <filter name="permission" status="passed" />
        <message>Entry created successfully.</message>
        <post-values>
            <title>fghdfgh</title>
            <content>&lt;p&gt;dfhsh&lt;/p&gt;</content>
            <author>jeff</author>
        </post-values>
    </save-message>

Im using RC2 and members extension

Ive updated to 2.07 still no upload as well when I edit an entry via frontend I get

Table 'kharandi_FamilyCenter.sym_entries_data_0' doesn't exist

An error occurred while attempting to execute the following query

* SELECT * FROM `sym_entries_data_0` WHERE `entry_id` = 108 LIMIT 1

Backtrace:

* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/class.mysql.php:275] MySQL->__error();
* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/class.mysql.php:313] MySQL->query();
* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/class.mysql.php:362] MySQL->fetch();
* [/home/kharandi/public_html/palsintouch/extensions/members/extension.driver.php:775] MySQL->fetchVar();
* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/class.extensionmanager.php:264] extension_Members->checkEventPermissions();
* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/events/event.section.php:31] ExtensionManager->notifyMembers();
* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/events/event.section.php:319] __doit();
* [/home/kharandi/public_html/palsintouch/workspace/events/event.save_message.php:84] include();
* [/home/kharandi/public_html/palsintouch/workspace/events/event.save_message.php:80] eventsave_message->__trigger();
* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/class.frontendpage.php:549] eventsave_message->load();
* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/class.frontendpage.php:233] FrontendPage->processEvents();
* [/home/kharandi/public_html/palsintouch/symphony/lib/toolkit/class.frontendpage.php:63] FrontendPage->__buildPage();
* [/home/kharandi/public_html/palsintouch/symphony/lib/core/class.frontend.php:50] FrontendPage->generate();
* [/home/kharandi/public_html/palsintouch/index.php:20] Frontend->display();

Make sure you have enctype="multipart/form-data" on your form element.

That exception you are getting, appears to be related to the Members extension. It’s having problem when running the checkEventPermissions function. Can you confirm that the Members extension has been setup correctly (under Members > Setup)?

enctype=”multipart/form-data”

I have this.

As far as i know its setup right ( i used the smartsetup) I’m logged in as a member and viewing private pages and I can add other field data via the form.

editing the entries via a form also fails. Ive checked the permissions in the member extension and I have it set to max for every event.

Im not really sure what else to try.

Strange. I think there is a bug in the Members extension. Its trying to look for a “Member” or “Member Link” field, but not finding one, and crapping out. The reason for this is that is assumes every section will have a member or memberlink field. I don’t think this is the right behaviour.

As for the file uploading. Perhaps it is the same bug some other people have noticed. I assume uploading works from the backend okay?

Yea from the back end its ok.

I changed my author field to a member link field from a text input and now I get this error for creating/editing entries from the front end

Fatal error: Class ‘Administration’ not found in /home/kharandi/public_html/palsintouch/extensions/members/fields/field.memberlink.php on line 232

If u want to check out my setup email me and Ill send you login info. [email protected]

I’m trying to solve this very issue. Let me know if/when you resolve it. Cheers!

Updated issue #238.

awesome file upload works.

Confirmed: Mine works too!

alpacaaa has classified his fix a “temporary” one. Hmmm.

Alistair? Please help, this is really a Class A bug.

alpacaaa has classified his fix a “temporary” one. Hmmm.

Alistair? Please help, this is really a Class A bug.

Alistair’s working copy on github contains the fix, along with many improvements to the code (great!).

@alpacaaa: I wouldn’t dare to run a live website on Alistair’s working branch. So I implemented your commits as an interim solution. Nevertheless I really hope that we will see most of the bugs in the bug tracker closed soon, followed by a new minor point release. 2.0.7 must be so discouraging for newbies!

Nevertheless I really hope that we will see most of the bugs in the bug tracker closed soon, followed by a new minor point release.

I’ve heard rumour that there will be a bugfix release. So let’s wait :)

hello there! I’ve got the same bug and dont understand how I can fix it…

Not that exactly I think. I cant just get frontend-attached file in backend after form submitting.

Decided to create a separate topic.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details