When I access the configuration pages, I have this error (admin/config/content/ocupload/edit/*):

Notice: Undefined property: stdClass::$rename_file in ocupload_form_template() (line 238 of /home/www/dev/erpal1/sites/all/modules/ocupload/ocupload.inc).

Same when I save a comment with one click upload button linked to ckeditor.

Comments

gbyte’s picture

Hi 118218, is it possible that your module version is out of sync with the module db tables? Make sure to run updates when upgrading the module (/update.php).

andreak’s picture

Hello, This module works with the default config but I am concerned about these errors - I have run drush updb many times and whenever I edit a template
(7.x-2.x-dev) I get the following errors

Notice: Undefined property: stdClass::$filename in ocupload_form_template() (line 112 of /var/www/html/and_so_forth
Notice: Undefined property: stdClass::$field in ocupload_form_template() (line 253 of /var/www/html/and_so_forth

I cannot add a new template though -every time I go to save:
Error messagePDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'filename' in 'field list': INSERT INTO {ocupload_templates} (mask, path, filename, max_filesize, template, template_select, image_style, image_style_original, link_to_original, link_template, link_only_big, max_dimensions, transliterate, field) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12, :db_insert_placeholder_13); Array ( [:db_insert_placeholder_0] => .pdf [:db_insert_placeholder_1] => public://inline [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => 0 [:db_insert_placeholder_4] => !filename [:db_insert_placeholder_5] => !text [:db_insert_placeholder_6] => [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 0 [:db_insert_placeholder_9] => !image [:db_insert_placeholder_10] => 0 [:db_insert_placeholder_11] => [:db_insert_placeholder_12] => 0 [:db_insert_placeholder_13] => ) in drupal_write_record() (line 7334 of /var/www/html/and_so_forth

Thanks

ivnish’s picture

Is this actually on the last version?