Page 1 of 1

How to get access to 2.5.9 site and how to update it?

Posted: Sun Sep 08, 2019 7:35 pm
by Pustik
Hello Everybody,

I have recently taken over a website that has ran into unknown to me issues. I've never managed a website or created one before.

I've contacted my host after getting "You are not authorised to view this resource." when clicking on a page inside a website. They told me that they recently migrated to a new server and that Joomla was automatically upgraded(no idea what the previous version was) and that I need to upgrade my core files. Or there might be issues inside the code(php).

Since I don't know the code, I thought I'll start by upgrading the core files. The difficult part is that I can't access Joomla's panel, when I try to login on https://xxx.com/administrator/index.php it simply removes my login information and remains as if nothing happened. If I input a wrong password or login then it gives me "Username and password do not match or you do not have an account yet." So looks like I'm entering correct information but it still won't let me through.

Through my host's website I was able to go to phphMyAdmin, change to a different password but with the same outcome.

In phpMyAdmin I found a dozen users registered, probably over 10,000. Looks like they were able to register the user names(dating back to 2014) by filling out a form on the website. Form used to register students for the upcoming competition. But why has the issue occurred only now?

What do you guys suggest I do now?

Re: What to do now?

Posted: Sun Sep 08, 2019 7:51 pm
by Per Yngve Berg
Run the Forum Post Assistant. See the pink frame above.

Re: How to get access to 2.5.9 site and how to update it?

Posted: Sun Sep 08, 2019 8:05 pm
by Pustik
Per Yngve Berg wrote:
Sun Sep 08, 2019 7:51 pm
Run the Forum Post Assistant. See the pink frame above.
Is this what you wanted me to post?
Forum Post Assistant (v1.4.9 (lambrusco)) : 8th September 2019 wrote:
Last PHP Error(s) Reported :: wrote:[08-Sep-2019 20:00:38 UTC] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /home2/xxx/public_html/libraries/joomla/application/application.php on line 481
Basic Environment :: wrote:Joomla! Instance :: Joomla! 2.5.9-Stable (Ember) 4-February-2013
Joomla! Platform :: Joomla Platform 11.4.0-Stable (Brian Kernighan) 03-Jan-2012
Joomla! Configured :: Yes | Writable (644) | Owner: --protected-- . (uid: 1/gid: 1) | Group: --protected-- (gid: 1) | Valid For: 2.5
Configuration Options :: Offline: false | SEF: true | SEF Suffix: false | SEF ReWrite: false | .htaccess/web.config: Yes | GZip: false | Cache: false | CacheTime: 15 | CacheHandler: file | CachePlatformPrefix: N/A | FTP Layer: false | Proxy: N/A | LiveSite: | Session lifetime: 150 | Session handler: database | Shared sessions: N/A | SSL: 0 | Error Reporting: default | Site Debug: false | Language Debug: false | Default Access: 1 | Unicode Slugs: false | dbConnection Type: mysqli | PHP Supports J! 2.5.9: No | Database Supports J! 2.5.9: Yes | Database Credentials Present: Yes |

Host Configuration :: OS: Linux | OS Version: 4.14.135-214.ELK.el7.x86_64 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate, br | Doc Root: --protected-- | System TMP Writable: Yes | Free Disk Space : 1304.96 GiB |

PHP Configuration :: Version: 7.3.9 | PHP API: cgi-fcgi | Session Path Writable: Yes | Display Errors: | Error Reporting: 32759 | Log Errors To: error_log | Last Known Error: 08th September 2019 20:00:38. | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 256M | Max. POST Size: 260M | Max. Input Time: 60 | Max. Execution Time: 30 | Memory Limit: 512M

Database Configuration :: Version: 5.7.23-23 (Client:mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $) | Host: --protected-- (--protected--) | default Collation: latin1_swedish_ci (default Character Set: latin1) | Database Size: 8.19 MiB | #of Tables: 83
Detailed Environment :: wrote:PHP Extensions :: Core (7.3.9) | date (7.3.9) | libxml (7.3.9) | openssl (7.3.9) | pcre (7.3.9) | zlib (7.3.9) | filter (7.3.9) | hash (7.3.9) | pcntl (7.3.9) | readline (7.3.9) | Reflection (7.3.9) | SPL (7.3.9) | session (7.3.9) | standard (7.3.9) | cgi-fcgi () | bcmath (7.3.9) | bz2 (7.3.9) | calendar (7.3.9) | ctype (7.3.9) | curl (7.3.9) | dom (20031129) | mbstring (7.3.9) | fileinfo (7.3.9) | ftp (7.3.9) | gd (7.3.9) | gettext (7.3.9) | gmp (7.3.9) | iconv (7.3.9) | imap (7.3.9) | intl (7.3.9) | json (1.7.0) | exif (7.3.9) | mysqlnd (mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $) | odbc (7.3.9) | PDO (7.3.9) | pgsql (7.3.9) | Phar (7.3.9) | posix (7.3.9) | pspell (7.3.9) | SimpleXML (7.3.9) | soap (7.3.9) | sockets (7.3.9) | sqlite3 (7.3.9) | tidy (7.3.9) | tokenizer (7.3.9) | xml (7.3.9) | xmlwriter (7.3.9) | xsl (7.3.9) | zip (1.15.4) | mysqli (7.3.9) | pdo_mysql (7.3.9) | PDO_ODBC (7.3.9) | pdo_pgsql (7.3.9) | pdo_sqlite (7.3.9) | wddx (7.3.9) | xmlreader (7.3.9) | xmlrpc (7.3.9) | imagick (3.4.3) | ionCube Loader (10.3.8) | Zend Engine (3.3.9) |
Potential Missing Extensions ::

Switch User Environment (Experimental) :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Custom SU (LiteSpeed/Cloud/Grid): Yes
Potential Ownership Issues: No
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: 1043386 | Threads: 3 | Questions: 73833125 | Slow queries: 0 | Opens: 2617359 | Flush tables: 1 | Open tables: 20000 | Queries per second avg: 70.763 |
Extensions Discovered :: wrote:Components :: SITE ::
Core :: com_wrapper (2.5.0) 1 | com_mailto (2.5.0) 1 |
3rd Party:: WF_TEXTCASE_TITLE (2.4.2) ? | WF_FULLSCREEN_TITLE (2.4.2) ? | WF_CONTEXTMENU_TITLE (2.4.2) ? | WF_VISUALCHARS_TITLE (2.4.2) ? | WF_KITCHENSINK_TITLE (2.4.2) ? | WF_NONBREAKING_TITLE (2.4.2) ? | WF_STYLE_TITLE (2.4.2) ? | WF_SEARCHREPLACE_TITLE (2.4.2) ? | WF_VISUALBLOCKS_TITLE (2.4.2) ? | WF_STYLESELECT_TITLE (2.4.2) ? | WF_TABLE_TITLE (2.4.2) ? | WF_ARTICLE_TITLE (2.4.2) ? | WF_FONTCOLOR_TITLE (2.4.2) ? | WF_CHARMAP_TITLE (2.4.2) ? | WF_LINK_TITLE (2.4.2) ? | WF_FORMATSELECT_TITLE (2.4.2) ? | WF_IMGMANAGER_TITLE (2.4.2) ? | WF_MEDIA_TITLE (2.4.2) ? | WF_BROWSER_TITLE (2.4.2) ? | WF_FONTSIZESELECT_TITLE (2.4.2) ? | WF_LAYER_TITLE (2.4.2) ? | WF_DIRECTIONALITY_TITLE (2.4.2) ? | WF_INLINEPOPUPS_TITLE (2.4.2) ? | WF_CLEANUP_TITLE (2.4.2) ? | WF_ANCHOR_TITLE (2.4.2) ? | WF_PREVIEW_TITLE (2.4.2) ? | WF_SOURCE_TITLE (2.4.2) ? | WF_AUTOSAVE_TITLE (2.4.2) ? | WF_XHTMLXTRAS_TITLE (2.4.2) ? | WF_CLIPBOARD_TITLE (2.4.2) ? | WF_PRINT_TITLE (2.4.2) ? | WF_FONTSELECT_TITLE (2.4.2) ? | WF_LISTS_TITLE (2.4.2) ? | WF_SPELLCHECKER_TITLE (2.4.2) ? | WF_LINK_SEARCH_TITLE (2.4.2) ? | WF_POPUPS_WINDOW_TITLE (2.4.2) ? | WF_POPUPS_JCEMEDIABOX_TITLE (2.4.2) ? | WF_FILESYSTEM_JOOMLA_TITLE (2.4.2) ? | WF_MEDIAPLAYER_JCEPLAYER_TITLE (2.4.2) ? | WF_LINKS_JOOMLALINKS_TITLE (2.4.2) ? | WF_AGGREGATOR_VIMEO_TITLE (2.4.2) ? | WF_AGGREGATOR_[youtube]_TITLE (2.4.2) ? | WF_AGGREGATOR_VINE_TITLE (2.4.2) ? |

Components :: ADMIN ::
Core :: com_cache (2.5.0) 1 | com_content (2.5.0) 1 | com_plugins (2.5.0) 1 | com_menus (2.5.0) 1 | com_checkin (2.5.0) 1 | com_categories (2.5.0) 1 | com_cpanel (2.5.0) 1 | com_modules (2.5.0) 1 | com_admin (2.5.0) 1 | com_messages (2.5.0) 1 | com_languages (2.5.0) 1 | com_users (2.5.0) 1 | com_config (2.5.0) 1 | com_templates (2.5.0) 1 | com_joomlaupdate (2.5.0) 1 | com_search (2.5.0) 1 | com_installer (2.5.0) 1 | com_media (2.5.0) 1 | com_finder (2.5.0) 1 | com_weblinks (2.5.0) 1 | com_newsfeeds (2.5.0) 1 | com_redirect (2.5.0) 1 | com_login (2.5.0) 1 | com_banners (2.5.0) 1 |
3rd Party:: FAQ Book (1.5.4) ? | com_gigcal (3.0.8) ? | JCE (2.4.2) ? | JEvents (3.2.12) ? |

Modules :: SITE ::
Core :: mod_menu (2.5.0) 1 | mod_banners (2.5.0) 1 | mod_articles_news (2.5.0) 1 | mod_articles_popular (2.5.0) 1 | mod_search (2.5.0) 1 | mod_articles_category (2.5.0) 1 | mod_custom (2.5.0) 1 | mod_random_image (2.5.0) 1 | mod_weblinks (2.5.0) 1 | mod_related_items (2.5.0) 1 | mod_footer (2.5.0) 1 | mod_whosonline (2.5.0) 1 | mod_languages (2.5.0) 1 | mod_articles_latest (2.5.0) 1 | mod_users_latest (2.5.0) 1 | mod_wrapper (2.5.0) 1 | mod_articles_categories (2.5.0) 1 | mod_syndicate (2.5.0) 1 | mod_feed (2.5.0) 1 | mod_finder (2.5.0) 1 | mod_login (2.5.0) 1 | mod_breadcrumbs (2.5.0) 1 | mod_articles_archive (2.5.0) 1 | mod_stats (2.5.0) 1 |
3rd Party:: mod_highlighter_gk4 (GK4 1.5) ? | JEvents Latest Events (3.2.12) 1 | JEvents Filter (3.2.12) 1 | JEvents CustomModule (3.2.12) 1 | JEvents Calendar (3.2.12) 1 | Nice Social Bookmark (1.7.4) ? | JEvents View Switcher (3.2.12) 1 | Simple AdSense (1.0) ? | YJ Image Slider V4 (4.0.3) 1 | Art Feature Carousel (1.9.3) ? | MOD_COUNT_DOWN_BIG (2.5-3) ? | JEvents Legend (3.2.12) 1 | simpleForm2 (1.0.33) 1 | JoomlaXTC Contact Wall (1.3.0) ? | Note-its (1.3) ? | Art Universal Lightbox (1.5.3) 1 |

Modules :: ADMIN ::
Core :: mod_menu (2.5.0) 1 | mod_latest (2.5.0) 1 | mod_custom (2.5.0) 1 | mod_toolbar (2.5.0) 1 | mod_multilangstatus (2.5.0) 1 | mod_logged (2.5.0) 1 | mod_feed (2.5.0) 1 | mod_version (2.5.0) 1 | mod_quickicon (2.5.0) 1 | mod_title (2.5.0) 1 | mod_submenu (2.5.0) 1 | mod_login (2.5.0) 1 | mod_status (2.5.0) 1 | mod_popular (2.5.0) 1 |
3rd Party::

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_system_sef (2.5.0) 1 | plg_system_cache (2.5.0) 0 | plg_system_languagefilter (2.5.0) 0 | plg_system_log (2.5.0) 1 | plg_system_debug (2.5.0) 1 | plg_system_redirect (2.5.0) 1 | plg_system_languagecode (2.5.0) 0 | plg_system_remember (2.5.0) 1 | plg_system_highlight (2.5.0) 1 | plg_system_logout (2.5.0) 1 | plg_system_p3p (2.5.0) 1 | plg_search_weblinks (2.5.0) 1 | plg_search_newsfeeds (2.5.0) 1 | plg_search_categories (2.5.0) 1 | plg_search_content (2.5.0) 1 | plg_search_contacts (2.5.0) 1 | plg_user_joomla (2.5.0) 1 | plg_user_profile (2.5.0) 0 | plg_user_contactcreator (2.5.0) 0 | plg_captcha_recaptcha (2.5.0) 1 | plg_extension_joomla (2.5.0) 1 | plg_editors-xtd_image (2.5.0) 1 | plg_editors-xtd_article (2.5.0) 1 | plg_editors-xtd_readmore (2.5.0) 1 | plg_editors-xtd_pagebreak (2.5.0) 1 | plg_authentication_joomla (2.5.0) 1 | plg_authentication_ldap (2.5.0) 0 | plg_authentication_gmail (2.5.0) 0 | plg_finder_weblinks (2.5.0) 1 | plg_finder_newsfeeds (2.5.0) 1 | plg_finder_categories (2.5.0) 1 | plg_finder_content (2.5.0) 1 | plg_finder_contacts (2.5.0) 1 | plg_content_loadmodule (2.5.0) 1 | plg_content_joomla (2.5.0) 1 | plg_content_vote (2.5.0) 1 | plg_content_pagenavigation (2.5.0) 1 | plg_content_geshi (2.5.0) 0 | plg_content_finder (2.5.0) 0 | plg_content_emailcloak (2.5.0) 1 | plg_content_pagebreak (2.5.0) 1 | plg_quickicon_extensionupdate (2.5.0) 1 | plg_quickicon_joomlaupdate (2.5.0) 1 |
3rd Party:: Google Maps (2.18) 1 | System - JCK Typography (3.5.0) 1 | Search - JEvents (3.2.12) 1 | plg_editors_jce (2.4.2) 1 | plg_editors_tinymce (3.5.4.1) 1 | plg_editors_codemirror (1.0) 1 | Editor - JoomlaCK (6.1.3) 1 | Unknown (plugins/editors/jckeditor/plugins/forcesimpleamp/forcesimpleamp.xml) (0.1) ? | Unknown (plugins/editors/jckeditor/plugins/ie9selectionoverride/ie9selectionoverride.xml) (0.1) ? | Unknown (plugins/editors/jckeditor/plugins/multipleclickdialoghandler/multipleclickdialoghandler.xml) (0.1) ? | Unknown (plugins/editors/jckeditor/plugins/adddialogfieldexample/adddialogfieldexample.xml) (0.1) ? | Unknown (plugins/editors/jckeditor/plugins/jhtmlencode/jhtmlencode.xml) (0.1) ? | Unknown (plugins/editors/jckeditor/plugins/codemirrorresize/codemirrorresize.xml) (0.1) ? | JTreeLink (1.0) ? | Unknown (plugins/editors/jckeditor/plugins/webkitdrag/webkitdrag.xml) (1.0) ? | Unknown (plugins/editors/jckeditor/plugins/imagedragndrop/imagedragndrop.xml) (0.1) ? | Unknown (plugins/editors/jckeditor/plugins/ietoolbarcollasperfix/ietoolbarcollasperfix.xml) (0.1) ? | System - JCK Typography (3.5.0) 1 | plg_finder_jevents (3.2.12) 0 | JEvents - Core Content Plugin (3.2.12) 1 | plg_quickicon_jcefilebrowser (2.4.2) 1 |
Templates Discovered :: wrote:Templates :: SITE :: 33 (1.0) 1 | 171 (1.0) 1 | 170 (1.0) 1 | mus5_temp (1.0) ? | mus7 (1.0) ? | mus8 (1.0) ? | mus_tmp (1.0) ? | 32 (1.0) 1 | 16 (1.0) 1 |
Templates :: ADMIN :: hathor (2.5.0) 1 | bluestork (2.5.0) 1 |

Re: How to get access to 2.5.9 site and how to update it?

Posted: Mon Sep 09, 2019 4:01 am
by toivo
Joomla 2.5 is too old to run on PHP 7. You need to downgrade to PHP 5.6: https://downloads.joomla.org/technical-requirements.

Follow these instructions to reset the admin password: https://docs.joomla.org/How_do_you_reco ... assword%3F.

Upgrade the site to 2.5.28 and then follow @leolam's guide how to upgrade to Joomla 3.x, available from the forum at viewtopic.php?f=710&t=793171.

You could clone your site using Akeeba Backup and run it on a localhost bundle like Wampserver and then do a trial upgrade on your workstation.

Re: How to get access to 2.5.9 site and how to update it?

Posted: Thu Sep 12, 2019 12:38 am
by Pustik
toivo wrote:
Mon Sep 09, 2019 4:01 am
Joomla 2.5 is too old to run on PHP 7. You need to downgrade to PHP 5.6: https://downloads.joomla.org/technical-requirements.

Follow these instructions to reset the admin password: https://docs.joomla.org/How_do_you_reco ... assword%3F.

Upgrade the site to 2.5.28 and then follow @leolam's guide how to upgrade to Joomla 3.x, available from the forum at viewtopic.php?f=710&t=793171.

You could clone your site using Akeeba Backup and run it on a localhost bundle like Wampserver and then do a trial upgrade on your workstation.
Hello,

Thank you for your response. This is all a bit too much for me so bear with me.

If I understand you correctly, I should first try to downgrade PHP to 5.6. If that doesn't work I need to upgrade my joomla to 2.5.28 then using the guide upgrade it higher?

Will that address the issue that I'm having? What is wrong with my joomla/website?

Thank you,
Grant

Re: How to get access to 2.5.9 site and how to update it?

Posted: Thu Sep 12, 2019 1:21 am
by toivo
Pustik wrote:What is wrong with my joomla/website?
The main reason is that the old version of Joomla 2.5 and the new version of PHP 7.3, released years apart, are not compatible. Your host upgraded PHP, which stopped your site from working. They may not be willing to run an old and unsupported version of PHP on the new server.

Joomla 2.5.9 was released in February 2013, when PHP 5.3.21 had just been released. Every new minor release of PHP introduces new features, modifies the behaviour of some statements but also deprecates statements, which are usually removed in the next major release. Therefore you would be lucky if PHP 5.6 worked at all. Most likely you will have to run your site in PHP 5.3 or 5.4.

Because the site is so old, unless you want to reconstruct it in a supported version of Joomla, some third party extensions, for example the template, are out of date or are unsupported.

It would be best to install the Wampserver bundle in your workstation by following the instructions from the Wampserver forum, and then install an older version of PHP as a Wampserver extension. Then you can copy the files from the 2.5.9 site and import its database and get the test site working first, before trying to upgrade.

If you are new to Joomla, you may want to get an expert involved in planning the migration to a supported version. Post your requirements to the Professional Development Services forum at viewforum.php?f=177.

Re: How to get access to 2.5.9 site and how to update it?

Posted: Fri Sep 13, 2019 5:36 am
by Pustik
toivo wrote:
Thu Sep 12, 2019 1:21 am
Pustik wrote:What is wrong with my joomla/website?
The main reason is that the old version of Joomla 2.5 and the new version of PHP 7.3, released years apart, are not compatible. Your host upgraded PHP, which stopped your site from working. They may not be willing to run an old and unsupported version of PHP on the new server.

Joomla 2.5.9 was released in February 2013, when PHP 5.3.21 had just been released. Every new minor release of PHP introduces new features, modifies the behaviour of some statements but also deprecates statements, which are usually removed in the next major release. Therefore you would be lucky if PHP 5.6 worked at all. Most likely you will have to run your site in PHP 5.3 or 5.4.

Because the site is so old, unless you want to reconstruct it in a supported version of Joomla, some third party extensions, for example the template, are out of date or are unsupported.

It would be best to install the Wampserver bundle in your workstation by following the instructions from the Wampserver forum, and then install an older version of PHP as a Wampserver extension. Then you can copy the files from the 2.5.9 site and import its database and get the test site working first, before trying to upgrade.

If you are new to Joomla, you may want to get an expert involved in planning the migration to a supported version. Post your requirements to the Professional Development Services forum at viewforum.php?f=177.
Hello toivo,

I can't thank you enough for your suggestion regarding php. It worked! A person I spoke to, made changes in .htaccess, he modified this below:

<IfModule mime_module>
AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>

The website works perfectly now and I've regained access to joomla's panel.

Hopefully this can help other people who have similar problem. Once again thank you!

-Grant

Re: How to get access to 2.5.9 site and how to update it?

Posted: Fri Sep 13, 2019 8:40 am
by toivo
Cheers. You could also start thinking about the upgrade process by reading the sticky topics at the Migrating and Upgrading to 3.x forum at viewforum.php?f=710.