Missing "document.php" file

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
limerman
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 14, 2022 10:15 am

Missing "document.php" file

Post by limerman » Mon Nov 14, 2022 10:40 am

Dear friends,

I have been experiencing problem with unavailable website (both website and admin) last weeks. So far I did not find the solution.

1) There is error message showed: Warning: Class "\Joomla\CMS\Document\Document" not found in /data/web/virtuals/45164/virtual/www/domains/....eu/libraries/loader.php on line 663
Error: Class "Joomla\CMS\Document\Document" not found: Class "JDocument" not found
2) Problem seems not be in the file loader.php because I found out that this message shows up because there is missing the /libraries/src/Document/document.php file for some reason.
3) When I upload the ducument.php file from the clean installation of Joomla (same version) the website works just fine.
4) But the file document.php disappears after some time again (missing on FTP). I do not know why.
5) It looks like that it disappears either after some edit on the website (new content) or when new update is ready (for plugins or Joomla).Cause sometimes I upload the document.php file and it disappears once after 1 day, once after 4 days. It is different.

I have Joomla! 3.10.11 with regularly updated plugins.

Can someone help please?
Last edited by toivo on Mon Nov 14, 2022 8:06 pm, edited 1 time in total.
Reason: mod note: moved from 4.x General Questions

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17443
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Missing "document.php" file

Post by toivo » Tue Nov 15, 2022 5:55 am

Welcome to the Joomla forum!

Does the website have some third party security extension that could block access to some files it suspects contain malware, based on pattern matching and analysis of the HTTP requests?

What about the web server and your host? Contact the host and find out if they have any logs with details of incidents occurring in the server.
Toivo Talikka, Global Moderator

limerman
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 14, 2022 10:15 am

Re: Missing "document.php" file

Post by limerman » Tue Nov 15, 2022 8:17 am

toivo wrote:
Tue Nov 15, 2022 5:55 am
Welcome to the Joomla forum!

Does the website have some third party security extension that could block access to some files it suspects contain malware, based on pattern matching and analysis of the HTTP requests?

What about the web server and your host? Contact the host and find out if they have any logs with details of incidents occurring in the server.
Hi Toivo,

there is no third party security extension installed on my website. Regarding the the host, I already contacted them and they were not able to help me. That was one of my first ideas, whether they for example did some changes on the server, but I am hosting orher websites with them without any problem.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 17443
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Missing "document.php" file

Post by toivo » Tue Nov 15, 2022 8:25 am

Please post the results from the Forum Post Assistant (FPA) by following the instructions at https://forumpostassistant.github.io/docs/ so that the configuration can be reviewed by our volunteer Joomla experts.
Toivo Talikka, Global Moderator

limerman
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 14, 2022 10:15 am

Re: Missing "document.php" file

Post by limerman » Tue Nov 15, 2022 8:47 am

toivo wrote:
Tue Nov 15, 2022 8:25 am
Please post the results from the Forum Post Assistant (FPA) by following the instructions at https://forumpostassistant.github.io/docs/ so that the configuration can be reviewed by our volunteer Joomla experts.
OK. I will prepare.

Thank you

limerman
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 14, 2022 10:15 am

Re: Missing "document.php" file

Post by limerman » Thu Nov 17, 2022 11:01 am

Dear Toivo,

here are the the FPA output data you requested.
Forum Post Assistant (v1.6.5) : 17-Nov-2022 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 3.10.11-Stable (Daraja) 14-August-2022
Joomla! Platform :: Joomla Platform 13.1.0-Stable (Curiosity) 24-Apr-2013
Joomla! Configured :: Yes | Writable (640) |
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: true | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: false | FTP Layer: false | Proxy: false | LiveSite: Is Not Empty | Session lifetime: 15 | Session handler: database | Shared sessions: false | SSL: 2 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: Public | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 3.10.11: Yes | Database Supports J! 3.10.11: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 5.4.0-86-generic | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate, br | System TMP Writable: Yes | Free Disk Space : Unknown |

PHP Configuration :: Version: 8.0.24 | PHP API: fpm-fcgi | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 24567 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: /data/web/virtuals/45164/virtual | Uploads: 1 | Max. Upload Size: 256M | Max. POST Size: 256M | Max. Input Time: 30 | Max. Execution Time: 90 | Memory Limit: 512M

Database Configuration :: Version: 10.1.44-MariaDB (Client:mysqlnd 8.0.24) | Database Size: 132.94 MiB | #of Tables with config prefix:  118 | #of other Tables:  0 | User Privileges : GRANT SELECTUser Privileges : INSERTUser Privileges : UPDATEUser Privileges : DELETEUser Privileges : CREATEUser Privileges : DROPUser Privileges : INDEXUser Privileges : ALTERUser Privileges : CREATE TEMPORARY TABLESUser Privileges : LOCK TABLESUser Privileges : EXECUTEUser Privileges : CREATE VIEWUser Privileges : SHOW VIEWUser Privileges : CREATE ROUTINEUser Privileges : ALTER ROUTINEUser Privileges : TRIGGER
Detailed Environment :: wrote:PHP Extensions :: Core (8.0.24) | date (8.0.24) | libxml (8.0.24) | openssl (8.0.24) | pcre (8.0.24) | sqlite3 (8.0.24) | zlib (8.0.24) | bcmath (8.0.24) | bz2 (8.0.24) | calendar (8.0.24) | ctype (8.0.24) | curl (8.0.24) | dom (20031129) | hash (8.0.24) | fileinfo (8.0.24) | filter (8.0.24) | ftp (8.0.24) | gd (8.0.24) | gettext (8.0.24) | gmp (8.0.24) | SPL (8.0.24) | iconv (8.0.24) | session (8.0.24) | intl (8.0.24) | json (8.0.24) | mbstring (8.0.24) | standard (8.0.24) | mysqlnd (mysqlnd 8.0.24) | mysqli (8.0.24) | PDO (8.0.24) | pdo_mysql (8.0.24) | pdo_sqlite (8.0.24) | Phar (8.0.24) | posix (8.0.24) | Reflection (8.0.24) | imap (8.0.24) | SimpleXML (8.0.24) | soap (8.0.24) | sockets (8.0.24) | sodium (8.0.24) | exif (8.0.24) | sysvmsg (8.0.24) | sysvsem (8.0.24) | sysvshm (8.0.24) | tokenizer (8.0.24) | xml (8.0.24) | xmlreader (8.0.24) | xmlwriter (8.0.24) | xsl (8.0.24) | zip (1.19.5) | cgi-fcgi (8.0.24) | imagick (3.7.0) | Zend OPcache (8.0.24) | Zend Engine (4.0.24) |
Potential Missing Extensions ::
Disabled Functions :: apache_child_terminate | apache_setenv | define_syslog_variables | diskfreespace | disk_free_space | disk_total_space | dl | exec | leak | link | openlog | passthru | pfsockopen | popen | posix_getgrnam | posix_getpgid | posix_getpwuid | posix_getpwnam | posix_getrlimit | posix_initgroups | posix_kill | posix_mkfifo | posix_mknod | posix_setpgid | posix_setsid | posix_setuid | posix_uname | proc_close | proc_get_status | proc_nice | proc_open | proc_terminate | putenv | readlink | register_tick_function | shell_exec | show_source | symlink | syslog | system |

Switch User Environment :: PHP CGI: No | Server SU: No | PHP SU: No | Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (755) | components/ (755) | modules/ (755) | plugins/ (755) | language/ (755) | templates/ (755) | cache/ (755) | logs/ (750) | tmp/ (755) | administrator/components/ (755) | administrator/modules/ (755) | administrator/language/ (755) | administrator/templates/ (755) | administrator/logs/ (750) |

Elevated Permissions (First 10) ::
Database Information :: wrote:Database statistics :: Uptime: 6669987 | Threads: 6 | Questions: 2333748748 | Slow queries: 12668 | Opens: 3398366 | Flush tables: 1 | Open tables: 50000 | Queries per second avg: 349.888 |
Extensions Discovered :: wrote:Components :: Site ::
Core :: com_mailto (3.0.0) 1 | com_wrapper (3.0.0) 1 |
3rd Party::

Components :: Admin ::
Core :: com_config (3.0.0) 1 | com_fields (3.7.0) 1 | com_banners (3.0.0) 1 | com_users (3.0.0) 1 | com_redirect (3.0.0) 1 | com_tags (3.1.0) 1 | com_associations (3.7.0) 1 | com_cpanel (3.0.0) 1 | com_joomlaupdate (3.10.1) 1 | com_content (3.0.0) 1 | com_messages (3.0.0) 1 | com_plugins (3.0.0) 1 | com_privacy (3.9.0) 1 | com_ajax (3.2.0) 1 | com_languages (3.0.0) 1 | com_newsfeeds (3.0.0) 1 | com_weblinks (3.7.0) 1 | com_templates (3.0.0) 1 | com_login (3.0.0) 1 | com_categories (3.0.0) 1 | com_search (3.0.0) 1 | com_media (3.0.0) 1 | com_actionlogs (3.9.0) 1 | com_postinstall (3.2.0) 1 | com_contenthistory (3.2.0) 1 | com_finder (3.0.0) 1 | com_menus (3.0.0) 1 | com_installer (3.0.0) 1 | com_admin (3.0.0) 1 | com_cache (3.0.0) 1 | com_modules (3.0.0) 1 | com_checkin (3.0.0) 1 |
3rd Party:: COM_OSMAP (5.0.8) 1 | spambotcheck (3.1.0) 1 | com_djimageslider (4.4) 1 | Akeeba (8.2.2) 1 | com_phocagallery (4.3.1) 1 |

Modules :: Site ::
Core :: mod_breadcrumbs (3.0.0) 1 | mod_finder (3.0.0) 1 | mod_stats (3.0.0) 1 | mod_footer (3.0.0) 1 | mod_tags_popular (3.1.0) 1 | mod_articles_category (3.0.0) 1 | mod_languages (3.5.0) 1 | mod_articles_archive (3.0.0) 1 | mod_banners (3.0.0) 1 | mod_random_image (3.0.0) 1 | mod_weblinks (3.7.0) 1 | mod_whosonline (3.0.0) 1 | mod_articles_latest (3.0.0) 1 | mod_articles_news (3.0.0) 1 | mod_tags_similar (3.1.0) 1 | mod_articles_categories (3.0.0) 1 | mod_login (3.0.0) 1 | mod_articles_popular (3.0.0) 1 | mod_menu (3.0.0) 1 | mod_users_latest (3.0.0) 1 | mod_syndicate (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_related_items (3.0.0) 1 | mod_custom (3.0.0) 1 | mod_search (3.0.0) 1 | mod_wrapper (3.0.0) 1 |
3rd Party:: Perfect Everything in Everyway (2.0.13) 1 | DJ-MegaMenu - Mobile Menu Button (4.3.6) 1 | DJ-MegaMenu (4.3.6) 1 | DJ-EasyContact (1.7.1) 1 | DJ-ImageSlider (4.4) 1 |

Modules :: Admin ::
Core :: mod_logged (3.0.0) 1 | mod_latest (3.0.0) 1 | mod_title (3.0.0) 1 | mod_sampledata (3.8.0) 1 | mod_privacy_dashboard (3.9.0) 1 | mod_multilangstatus (3.0.0) 1 | mod_submenu (3.0.0) 1 | mod_login (3.0.0) 1 | mod_popular (3.0.0) 1 | mod_latestactions (3.9.0) 1 | mod_menu (3.0.0) 1 | mod_status (3.0.0) 1 | mod_version (3.0.0) 1 | mod_quickicon (3.0.0) 1 | mod_toolbar (3.0.0) 1 | mod_feed (3.0.0) 1 | mod_stats_admin (3.0.0) 1 | mod_custom (3.0.0) 1 |
3rd Party::

Libraries ::
Core ::
3rd Party:: file_fof30 (3.6.2) ? | file_fof40 (4.1.1) ? |

Plugins ::
Core :: plg_captcha_recaptcha_invisible (3.8) 0 | plg_captcha_recaptcha (3.4.0) 0 | plg_authentication_ldap (3.0.0) 0 | plg_authentication_gmail (3.0.0) 0 | plg_authentication_joomla (3.0.0) 1 | plg_authentication_cookie (3.0.0) 1 | plg_extension_joomla (3.0.0) 1 | plg_finder_contacts (3.0.0) 1 | plg_finder_categories (3.0.0) 1 | plg_finder_tags (3.0.0) 1 | plg_finder_weblinks (3.7.0) 1 | plg_finder_newsfeeds (3.0.0) 1 | plg_finder_content (3.0.0) 1 | plg_privacy_consents (3.9.0) 1 | plg_privacy_message (3.9.0) 1 | plg_privacy_content (3.9.0) 1 | plg_privacy_actionlogs (3.9.0) 1 | plg_privacy_user (3.9.0) 1 | plg_installer_packageinstaller (3.6.0) 1 | plg_installer_webinstaller (2.1.2) 1 | PLG_INSTALLER_FOLDERINSTALLER (3.6.0) 1 | PLG_INSTALLER_URLINSTALLER (3.6.0) 1 | PLG_ACTIONLOG_JOOMLA (3.9.0) 1 | plg_quickicon_phpversioncheck (3.7.0) 1 | plg_quickicon_joomlaupdate (3.0.0) 1 | plg_quickicon_eos310 (3.10.0) 1 | plg_quickicon_privacycheck (3.9.0) 1 | plg_quickicon_extensionupdate (3.0.0) 1 | plg_fields_calendar (3.7.0) 1 | plg_fields_list (3.7.0) 1 | plg_fields_repeatable (3.9.0) 1 | plg_fields_text (3.7.0) 1 | plg_fields_checkboxes (3.7.0) 1 | plg_fields_url (3.7.0) 1 | plg_fields_textarea (3.7.0) 1 | plg_fields_integer (3.7.0) 1 | plg_fields_media (3.7.0) 1 | plg_fields_imagelist (3.7.0) 1 | plg_fields_sql (3.7.0) 1 | plg_fields_usergrouplist (3.7.0) 1 | plg_fields_color (3.7.0) 1 | plg_fields_editor (3.7.0) 1 | plg_fields_radio (3.7.0) 1 | plg_fields_user (3.7.0) 1 | plg_system_logrotation (3.9.0) 1 | plg_system_updatenotification (3.5.0) 1 | plg_system_sessiongc (3.8.6) 1 | plg_system_log (3.0.0) 1 | plg_system_debug (3.0.0) 1 | plg_system_logout (3.0.0) 1 | plg_system_stats (3.5.0) 1 | plg_system_sef (3.0.0) 1 | plg_system_remember (3.0.0) 1 | plg_system_weblinks (3.7.0) 0 | plg_system_languagefilter (3.0.0) 0 | plg_system_p3p (3.0.0) 1 | plg_system_fields (3.7.0) 1 | plg_system_privacyconsent (3.9.0) 0 | plg_system_languagecode (3.0.0) 0 | plg_system_redirect (3.0.0) 0 | plg_system_cache (3.0.0) 0 | PLG_SYSTEM_ACTIONLOGS (3.9.0) 0 | plg_system_highlight (3.0.0) 1 | plg_twofactorauth_yubikey (3.2.0) 0 | plg_twofactorauth_totp (3.2.0) 0 | plg_content_pagenavigation (3.0.0) 1 | plg_content_vote (3.0.0) 1 | plg_content_joomla (3.0.0) 1 | plg_content_finder (3.0.0) 1 | plg_content_confirmconsent (3.9.0) 0 | plg_content_pagebreak (3.0.0) 1 | plg_content_fields (3.7.0) 1 | plg_content_emailcloak (3.0.0) 1 | plg_content_loadmodule (3.0.0) 1 | plg_search_contacts (3.0.0) 1 | plg_search_categories (3.0.0) 1 | plg_search_tags (3.0.0) 0 | plg_search_weblinks (3.7.0) 1 | plg_search_newsfeeds (3.0.0) 1 | plg_search_content (3.0.0) 1 | plg_editors-xtd_article (3.0.0) 1 | plg_editors-xtd_readmore (3.0.0) 1 | plg_editors-xtd_menu (3.7.0) 1 | plg_editors-xtd_pagebreak (3.0.0) 1 | plg_editors-xtd_fields (3.7.0) 1 | plg_editors-xtd_image (3.0.0) 1 | plg_editors-xtd_module (3.5.0) 1 | plg_editors-xtd_weblink (3.7.0) 0 | plg_user_terms (3.9.0) 0 | plg_user_joomla (3.0.0) 1 | plg_user_profile (3.0.0) 1 | plg_user_contactcreator (3.0.0) 0 |
3rd Party:: PLG_OSMAP_JOOMLA (5.0.8) 1 | PLG_ACTIONLOG_AKEEBABACKUP (8.2.2) 0 | plg_quickicon_akeebabackup (8.2.2) 0 | Perfect Cookie Policy in Everyway (2.0.3) 1 | Perfect Facebook Page Plugin in Eve (2.0.5) ? | plg_system_osmylicensesmanager (2.0.15) 1 | plg_system_ef4_jmframework (4.9.6) 1 | plg_system_djmegamenu (4.3.6) 1 | PLG_SYSTEM_BACKUPONUPDATE (8.2.2) 1 | plg_content_josdewplayer (2.0) 1 | Content - Perfect Everything in Eve (2.0.0) ? | Button - Perfect Everything in Ever (2.0.0) ? | plg_editors_codemirror (5.60.0) 1 | plg_editors_tinymce (4.5.12) 1 | User - SpambotCheck (3.1.0) 1 |
Templates Discovered :: wrote:Templates :: Site :: beez3 (3.1.0) 0 | protostar (1.0) 0 | jm-commune-offices (1.02) 1 |
Templates :: Admin :: isis (1.0) 1 | hathor (3.0.0) 0 |

limerman
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 14, 2022 10:15 am

Re: Missing "document.php" file

Post by limerman » Thu Dec 08, 2022 8:34 am

Hi @toivo,

what next? Above are the FPA output data. Can you or someone else check it and help?

Thx.

maglott
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Mar 15, 2018 1:00 pm

Re: Missing "document.php" file

Post by maglott » Fri Jan 06, 2023 5:51 pm

Hi,

I have the same error at https://www.caf-saou-synclinal.com/ . Did you find a solution?
Best regards.

limerman
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 14, 2022 10:15 am

Re: Missing "document.php" file

Post by limerman » Fri Jan 06, 2023 6:28 pm

maglott wrote:
Fri Jan 06, 2023 5:51 pm
Hi,

I have the same error at https://www.caf-saou-synclinal.com/ . Did you find a solution?
Best regards.
Hi @maglott,

unfortunately not. No one from the community came with the solution. So I am still searching for some information.

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Missing "document.php" file

Post by sozzled » Fri Jan 06, 2023 6:42 pm

Please see information about $live_site in configuration.php here ==> viewtopic.php?f=811&t=998357

limerman
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 14, 2022 10:15 am

Re: Missing "document.php" file

Post by limerman » Tue Jan 17, 2023 8:22 pm

sozzled wrote:
Fri Jan 06, 2023 6:42 pm
Please see information about $live_site in configuration.php here ==> viewtopic.php?f=811&t=998357
Hi @sozzled thank you for information. I updated the configuration.php file so that the $live_site is now blank.

Just to understand, what does have $live_site value to do with the document.php file which is disappearing without any reason?

Thank you

Kind regards

limerman
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Nov 14, 2022 10:15 am

Re: Missing "document.php" file

Post by limerman » Wed Jan 18, 2023 12:04 pm

limerman wrote:
Fri Jan 06, 2023 6:28 pm
maglott wrote:
Fri Jan 06, 2023 5:51 pm
Hi,

I have the same error at https://www.caf-saou-synclinal.com/ . Did you find a solution?
Best regards.
Hi @maglott,

unfortunately not. No one from the community came with the solution. So I am still searching for some information.
Hi @maglott,

the only thing partly helped me is to check the current Joomla version of your website and download clear full installation of the same Joomla version. In the clear Joomla installation you will find "Libraries" > "src" > "Documents" and the "Documents.php" file. Just upload this file to same destination folder of your website. That should help.

My problem is, that the "Document.php" file disappeares again after some time.


Locked

Return to “General Questions/New to Joomla! 3.x”