Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • john patrikiadis Friend
    #1082421

    The site is https://www.arion-software.co.uk/ and when i go there i get the error Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; JAStack has a deprecated constructor in /home/arionsof/public_html/modules/mod_jaslideshowlite/helpers/helper.php on line 800. I have upgraded the jaslideshowlite component and the template to the latest version but i still get this error

    timtecsa Friend
    #1082430

    Hi John,

    I found this on Google. https://cweiske.de/tagebuch/php4-constructors-php7.htm
    Seems that some older (PHP4) terms still hanging around that PHP7 not happy about, but not critical. I notice the message only appears on first visit to your homepage.
    Did you install ja-nuevo from quickstart ?

    Tim

    john patrikiadis Friend
    #1082435

    No. I installed from extensions->modules->Install procedure. What am i supposed to do with the link you sent me?

    john patrikiadis Friend
    #1082436

    I updated the template and the component to fix this automatically. If the upgrade don;t do that then with my luck of knowledge what should i do?

    timtecsa Friend
    #1082447

    I recently installed (on a local MAMP server) ja-nuevo from quickstart (https://www.joomlart.com/downloads/joomla-templates/ja-nuevo/) complete with all demo content, in order to use as a reference.

    For the real site I do the same in another folder but omit the option to install demo content near the end of the install process.

    I suggest you consider doing the same to rebuild your site. You might want to look at the j2xml plugin to transfer content from your existing site.

    If you need more help, please send temporary login details for your site(s) via Skype. Skypename: timcoldwell
    Tim


    1. nuevo-qs
    timtecsa Friend
    #1082449

    Well done! I see you fixed it. https://compose.com.hk/ is a ja-nuevo site I built recently for an HK friend. It too is for selling software so maybe gives you some ideas. Good luck.

    Tim

    john patrikiadis Friend
    #1082451

    No i haven’t fixed it. Actually this is what it does the template. One time shows ok and the next not.
    as I did the install on the real site it is quite difficult for me to redo it not to mention that I am afraid of messing everything up.

    timtecsa Friend
    #1082455

    Odd. I cleared my browser cache (Chrome on MacOS) and the error message has gone.

    Oops. It came back again. 🙁

    However, I have been advised by php guru, Roberto Segura, that the error is easy to fix. _ It’s an easy fix. They only have to rename the constructor of that file to _construct() instead of using the class name for it which was the old php4 convention.

    OK ?
    You might want to do an Akeeba Backup first. You do have Akeeba Backup extension installed I trust ?

    • This reply was modified 6 years, 11 months ago by  timtecsa.
    • This reply was modified 6 years, 11 months ago by  timtecsa.
    timtecsa Friend
    #1082462

    FYI, this is the relevant PHP code from my local copy of ja-nuevo

        /**
             * Constructor
             *
             * For php4 compatability we must not use the __constructor as a constructor for plugins
             * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
             * This causes problems with cross-referencing necessary for the observer design pattern.
             *
             */
            function JAStack()
            {
                $this->_arr = array();
            }

    Is yours different ?

    john patrikiadis Friend
    #1082466

    i do have the akkeba backup but i don;t know which file to modify

    timtecsa Friend
    #1082467

    The file is specified in the error message.
    /home/arionsof/public_html/modules/mod_jaslideshowlite/helpers/helper.php on line 800.

    You should be able to edit the file using FTP program. You could also fully replace ‘ helper.php ‘ file by getting a copy from the ja-nuevo quickstart download if you extract it to a folder on your PC.

    john patrikiadis Friend
    #1082468

    the new file is the same as the old one. The thing now is that i lost the image on the first page.

    timtecsa Friend
    #1082470

    You replaced the ‘ helper.php ‘ file completely ?

    timtecsa Friend
    #1082471

    Lines 800 to 819 should be:

    
       class JAStack
        {
            /*
             * array
             */
            var $_arr = null;
    
            /**
             * Constructor
             *
             * For php4 compatability we must not use the __constructor as a constructor for plugins
             * because func_get_args ( void ) returns a copy of all passed arguments NOT references.
             * This causes problems with cross-referencing necessary for the observer design pattern.
             *
             */
            function JAStack()
            {
                $this->_arr = array();
            }

    I think I copied from wrong point, earlier. Line #2 above is line #800 in your file.

    • This reply was modified 6 years, 11 months ago by  timtecsa.
    john patrikiadis Friend
    #1082472

    no. I just renamed the constructor as said on the google https://cweiske.de/tagebuch/php4-constructors-php7.htm.

Viewing 15 posts - 1 through 15 (of 24 total)

This topic contains 23 replies, has 3 voices, and was last updated by  timtecsa 6 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum