2.5.28: changing/modifying article fails field images doesn't have a default value

Need help with the Administration of your Joomla! 2.5 site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
maleas
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri Jun 05, 2009 4:58 am

2.5.28: changing/modifying article fails field images doesn't have a default value

Post by maleas » Tue Apr 30, 2019 7:22 am

This is a rather old Joomla 2.5.28 installation, that I had to move to another vhost. Front-end seems ok, however trying to modify an existing article or insert a new one fails with the following error:

Code: Select all

...
TableContent: :store
Field 'images' doesn't have a default value SQL=INSERT INTO `myprefix_content` (`id`,`title`,`alias`,`introtext`,`fulltext`,`state`,`catid`,`created`,`created_by`,`created_by_alias`,`publish_up`,`publish_down`,`attribs`,`version`,`metakey`,`metadesc`,`access`,`metadata`,`featured`,`language`,`xreference`) VALUES ('0','This is a test','this-is-a-test','

anotyher one

','','0','8','2019-04-30 07:17:02','42','','','','{\"show_title\":\"\",\"link_titles\":\"\",\"show_intro\":\"\",\"show_category\":\"\",\"link_category\":\"\",\"show_parent_category\":\"\",\"link_parent_category\":\"\",\"show_author\":\"\",\"link_author\":\"\",\"show_create_date\":\"\",\"show_modify_date\":\"\",\"show_publish_date\":\"\",\"show_item_navigation\":\"\",\"show_icons\":\"\",\"show_print_icon\":\"\",\"show_email_icon\":\"\",\"show_vote\":\"\",\"show_hits\":\"\",\"show_noauth\":\"\",\"urls_position\":\"\",\"alternative_readmore\":\"\",\"article_layout\":\"\",\"show_publishing_options\":\"\",\"show_article_options\":\"\",\"show_urls_images_backend\":\"\",\"show_urls_images_frontend\":\"\"}','1','','','1','{\"robots\":\"\",\"author\":\"\",\"rights\":\"\",\"xreference\":\"\"}','0','el-GR','')
I've reuploaded the 2.5.28 files but I'm buffled here. Not an expert on Joomla/SQL, but it seems as though the image field is required, yet I don't have the plainest idea why the insert operation does not try to fill a value for it. It's not a problem with image alone too; I've modified in SQL the field to allow it to be null, then I receive this error for another field of the myprefix_content table...

Any help would be appreciated. I was about ready to start a migration to 3.x, but I'm stuck here.

User avatar
paulala
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by paulala » Wed May 01, 2019 9:32 am

Please post the results of the Forum Post Assistant (FPA) by following the instructions from viewtopic.php?f=806&t=969442
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk

maleas
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri Jun 05, 2009 4:58 am

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by maleas » Wed May 01, 2019 2:56 pm

Forum Post Assistant (v1.4.8 (koine)) : 1st May 2019 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 2.5.28-Stable (Ember) 10-December-2014
Joomla! Platform :: Joomla Platform 11.4.0-Stable (Brian Kernighan) 03-Jan-2012
Joomla! Configured :: Yes | Writable (644) | Owner: --protected-- . (uid: /gid: ) | Group: --protected-- (gid: ) | Valid For: 2.5
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: true | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: N/A | FTP Layer: true | Proxy: N/A | LiveSite: | Session lifetime: 15 | Session handler: database | Shared sessions: N/A | SSL: 1 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 2.5.28: Yes | Database Supports J! 2.5.28: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 3.10.0-957.5.1.el7.x86_64 | Technology: i686 | Web Server: Apache | Encoding: gzip, deflate | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 61.18 GiB |

PHP Configuration :: Version: 5.5.38 | PHP API: apache2handler | Session Path Writable: Yes | Display Errors: Off | Error Reporting: 22527 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Open Base: /opt/awex-pages:/storage/ssd1/076/6680076 | Uploads: 1 | Max. Upload Size: 8M | Max. POST Size: 8M | Max. Input Time: 30 | Max. Execution Time: 30 | Memory Limit: 128M

Database Configuration :: Version: 5.5.30 (Client:mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $) | Host: --protected-- (--protected--) | default Collation: utf8_unicode_ci (default Character Set: utf8) | Database Size: 979.49 KiB | #of Tables: 86
Detailed Environment :: wrote:PHP Extensions :: Core (5.5.38) | date (5.5.38) | ereg () | libxml () | openssl () | pcre () | zlib (2.0) | filter (0.11.0) | hash (1.0) | Reflection ($Id: dc76d2fe0f3e9c327c1d4ca617d94e26c7fae98d $) | SPL (0.2) | session () | standard (5.5.38) | apache2handler () | bcmath () | bz2 () | calendar () | ctype () | curl () | dom (20031129) | mbstring () | fileinfo (1.0.5) | ftp () | gd () | gettext () | iconv () | intl (1.1.0) | json (1.3.10) | exif (1.4 $Id: 74b652b3ebe78882b8006d49c17cac029fe8a5d0 $) | mcrypt () | mysqlnd (mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $) | mysql (1.0) | mysqli (0.1) | PDO (1.0.4dev) | pdo_mysql (1.0.2) | pdo_sqlite (1.0.1) | Phar (2.0.2) | SimpleXML (0.1) | soap () | sockets () | sqlite3 (0.7-dev) | tokenizer (0.1) | xml () | wddx () | xmlreader (0.1) | xmlrpc (0.51) | xmlwriter (0.1) | xsl (0.1) | zip (1.15.4) | mhash () | ionCube Loader () | Zend Guard Loader () | Zend OPcache (7.0.4-devFE) | Zend Engine (2.5.0) |
Potential Missing Extensions ::
Disabled Functions :: putenv | system | show_source | exec | shell_exec | proc_open | passthru | set_time_limit | ini_restore | mysql_list_dbs | ini_alter | dl | pfsockopen | openlog | syslog | symlink | link | chgrp | leak | popen | escapeshellcmd | apache_child_terminate | apache_getenv | apache_note | apache_setenv | virtual | mb_send_mail |

Switch User Environment (Experimental) :: PHP CGI: No | Server SU: No | PHP SU: No | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No

Apache Modules :: core | mod_so | http_core | mod_access_compat | mod_alias | mod_allowmethods | mod_auth_basic | mod_auth_digest | mod_authn_anon | mod_authn_core | mod_authn_dbd | mod_authn_dbm | mod_authn_file | mod_authz_core | mod_authz_dbd | mod_authz_dbm | mod_authz_groupfile | mod_authz_host | mod_authz_owner | mod_authz_user | mod_autoindex | mod_deflate | mod_dir | mod_dumpio | mod_env | mod_expires | mod_headers | mod_include | mod_info | mod_log_config | mod_logio | mod_mime_magic | mod_mime | mod_negotiation | mod_reqtimeout | mod_rewrite | mod_setenvif | mod_status | mod_substitute | mod_unique_id | mod_unixd | mod_userdir | mod_version | prefork | mod_systemd | mod_ruid2 | mod_php5 | mod_rpaf | mod_reset | Apache |
Potential Missing Modules :: mod_security | mod_evasive | mod_dosevasive | mod_ssl | mod_qos | mod_userdir |
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (755) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (---) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 7316 Threads | Questions: 36460335 | Slow queries: 35700 |
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_mailto (2.5.0) 1 | com_wrapper (2.5.0) 1 |
3rd Party::

Components :: ADMIN ::
Core :: com_admin (2.5.0) 1 | com_categories (2.5.0) 1 | com_banners (2.5.0) 1 | com_cache (2.5.0) 1 | com_checkin (2.5.0) 1 | com_config (2.5.0) 1 | com_content (2.5.0) 1 | com_cpanel (2.5.0) 1 | com_finder (2.5.0) 1 | com_installer (2.5.0) 1 | com_languages (2.5.0) 1 | com_joomlaupdate (2.5.0) 1 | com_login (2.5.0) 1 | com_media (2.5.0) 1 | com_menus (2.5.0) 1 | com_messages (2.5.0) 1 | com_modules (2.5.0) 1 | com_newsfeeds (2.5.0) 1 | com_plugins (2.5.0) 1 | com_redirect (2.5.0) 1 | com_search (2.5.0) 1 | com_templates (2.5.0) 1 | com_users (2.5.0) 1 | com_weblinks (2.5.0) 1 |
3rd Party:: j4age (4.0.2.3.110 R) 1 | Ip2Nation (1.0.1) ? | ImageShow (3.1.3) ? | ImageShow (3.1.3) ? | com_xmap (2.1) 1 |

Modules :: SITE ::
Core :: mod_articles_archive (2.5.0) 1 | mod_articles_categories (2.5.0) 1 | mod_articles_category (2.5.0) 1 | mod_articles_latest (2.5.0) 1 | mod_articles_popular (2.5.0) 1 | mod_articles_news (2.5.0) 1 | mod_banners (2.5.0) 1 | mod_breadcrumbs (2.5.0) 1 | mod_custom (2.5.0) 1 | mod_feed (2.5.0) 1 | mod_finder (2.5.0) 1 | mod_footer (2.5.0) 1 | mod_languages (2.5.0) 1 | mod_login (2.5.0) 1 | mod_menu (2.5.0) 1 | mod_random_image (2.5.0) 1 | mod_related_items (2.5.0) 1 | mod_search (2.5.0) 1 | mod_stats (2.5.0) 1 | mod_syndicate (2.5.0) 1 | mod_users_latest (2.5.0) 1 | mod_weblinks (2.5.0) 1 | mod_whosonline (2.5.0) 1 | mod_wrapper (2.5.0) 1 |
3rd Party:: JSN ImageShow (3.1.3) 1 |

Modules :: ADMIN ::
Core :: mod_custom (2.5.0) 1 | mod_feed (2.5.0) 1 | mod_latest (2.5.0) 1 | mod_logged (2.5.0) 1 | mod_login (2.5.0) 1 | mod_menu (2.5.0) 1 | mod_multilangstatus (2.5.0) 1 | mod_online (1.6.0) 1 | mod_popular (2.5.0) 1 | mod_quickicon (2.5.0) 1 | mod_status (2.5.0) 1 | mod_submenu (2.5.0) 1 | mod_title (2.5.0) 1 | mod_toolbar (2.5.0) 1 | mod_unread (1.6.0) ? | mod_version (2.5.0) 1 |
3rd Party:: JSN ImageShow Quick Icons (3.1.0) 1 |

Libraries :: SITE ::
Core ::
3rd Party:: lib_fof (rev6DF56A0) 1 |

Plugins :: SITE ::
Core :: plg_authentication_gmail (2.5.0) 0 | plg_authentication_joomla (2.5.0) 1 | plg_authentication_ldap (2.5.0) 0 | plg_captcha_recaptcha (2.5.0) 1 | plg_content_finder (2.5.0) 0 | plg_content_emailcloak (2.5.0) 1 | plg_content_geshi (2.5.0) 0 | plg_content_joomla (2.5.0) 1 | plg_content_loadmodule (2.5.0) 1 | plg_content_pagebreak (2.5.0) 1 | plg_content_pagenavigation (2.5.0) 1 | plg_content_vote (2.5.0) 1 | plg_editors-xtd_article (2.5.0) 1 | plg_editors-xtd_image (2.5.0) 1 | plg_editors-xtd_pagebreak (2.5.0) 1 | plg_editors-xtd_readmore (2.5.0) 1 | plg_extension_joomla (2.5.0) 1 | plg_finder_contacts (2.5.0) 1 | plg_finder_categories (2.5.0) 1 | plg_finder_content (2.5.0) 1 | plg_finder_weblinks (2.5.0) 1 | plg_finder_newsfeeds (2.5.0) 1 | PLG_EOSNOTIFY (2.5.0) 1 | plg_quickicon_extensionupdate (2.5.0) 1 | plg_quickicon_joomlaupdate (2.5.0) 0 | plg_search_contacts (2.5.0) 1 | plg_search_content (2.5.0) 1 | plg_search_categories (2.5.0) 1 | plg_search_weblinks (2.5.0) 1 | plg_search_newsfeeds (2.5.0) 1 | plg_system_cache (2.5.0) 0 | plg_system_debug (2.5.0) 1 | plg_system_highlight (2.5.0) 1 | plg_system_languagecode (2.5.0) 0 | plg_system_languagefilter (2.5.0) 1 | plg_system_log (2.5.0) 1 | plg_system_logout (2.5.0) 1 | plg_system_p3p (2.5.0) 1 | plg_system_redirect (2.5.0) 1 | plg_system_remember (2.5.0) 1 | plg_system_sef (2.5.0) 1 | plg_user_joomla (2.5.0) 1 | plg_user_contactcreator (2.5.0) 0 | plg_user_profile (2.5.0) 0 |
3rd Party:: Content - JSN ImageShow (3.1.3) 1 | ValAddThis (1.5.4) 1 | plg_editors_codemirror (1.0) 1 | plg_editors_tinymce (3.5.11) 1 | Theme Classic (1.1.0) 1 | System - EasyCalcCheck PLUS - ECC+ (2.5-1) 1 | System - JSN ImageShow (3.1.3) 1 | System - j4age (4.0.2.3.6 RC) 1 | Google Maps (2.20) 1 | Xmap - Content Plugin (2.0.2) 1 | Xmap - Kunena Plugin (2.0.1) 0 | Xmap - Mosets Tree Plugin (2.0) 0 | Xmap - SobiPro Plugin (2.0) 0 |
Templates Discovered :: wrote:Templates :: SITE :: ALLROUNDER-j1.6 (1.1) 1 | atomic (2.5.0) 1 | beez5 (2.5.0) 1 | beez_20 (2.5.0) 1 | JSN_Epic_PRO (4.4.5) 1 |
Templates :: ADMIN :: hathor (2.5.0) 1 | bluestork (2.5.0) 1 |

maleas
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri Jun 05, 2009 4:58 am

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by maleas » Thu Jun 13, 2019 10:17 am

(bump) Someone fellas?

User avatar
paulala
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by paulala » Fri Jun 14, 2019 10:19 am

When you say you had to move to another host, how did you do it?

Did you use akeeba?
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk

maleas
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri Jun 05, 2009 4:58 am

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by maleas » Fri Jun 14, 2019 10:29 am

I had to use an older site and database backup. It worked fine, but had to disable akeeba since there were some known security issues with it. I didn't try at the time to post an article or edit an existing one...

User avatar
paulala
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by paulala » Fri Jun 14, 2019 10:31 am

Yeah ok but how was that backup created?
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk

maleas
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri Jun 05, 2009 4:58 am

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by maleas » Fri Jun 14, 2019 10:33 am

From phymyadmin.

User avatar
paulala
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 221
Joined: Sat Oct 30, 2010 12:32 pm
Location: Scotland
Contact:

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by paulala » Fri Jun 14, 2019 10:43 am

Hmm I suspect you're falling foul of some of the more global elements of mysql config being different between the target and the origin.

Have you looked through /etc/mysql/my.cnf and any of the files it references?

Look for inconsistencies.

Look at the output of this command in mysql:

Code: Select all

mysql -u root -p -e "SHOW VARIABLES LIKE 'sql_mode';"
Look at your table definitions and try setting default values where their absence is creating exceptions.

Best bet though is to go back and akeeba the site. I suspect that'll make the difference
Warm Regards,
Paula Livingstone, Skydiving Instructor and Network Security Consultant
https://paulalivingstone.com
http://rustyice.co.uk

maleas
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri Jun 05, 2009 4:58 am

Re: 2.5.28: changing/modifying article fails field images doesn't have a default value

Post by maleas » Fri Jun 14, 2019 11:00 am

Thanks, I'll try your recommendations, much appreciated.


Post Reply

Return to “Administration Joomla! 2.5”