-
AuthorPosts
-
December 20, 2017 at 1:08 pm #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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 20, 2017 at 2:06 pm #1082430Hi 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
December 20, 2017 at 2:34 pm #1082435No. I installed from extensions->modules->Install procedure. What am i supposed to do with the link you sent me?
December 20, 2017 at 2:36 pm #1082436I 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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 20, 2017 at 3:22 pm #1082447I 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
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 20, 2017 at 3:30 pm #1082449Well 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
December 20, 2017 at 3:33 pm #1082451No 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 Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 20, 2017 at 3:40 pm #1082455Odd. 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 ?timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 20, 2017 at 4:23 pm #1082462FYI, 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 ?
December 20, 2017 at 4:36 pm #1082466i do have the akkeba backup but i don;t know which file to modify
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 20, 2017 at 4:43 pm #1082467The 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.
December 20, 2017 at 4:47 pm #1082468the new file is the same as the old one. The thing now is that i lost the image on the first page.
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 20, 2017 at 4:52 pm #1082470You replaced the ‘ helper.php ‘ file completely ?
timtecsa Friendtimtecsa
- Join date:
- October 2009
- Posts:
- 1382
- Downloads:
- 86
- Uploads:
- 327
- Thanks:
- 197
- Thanked:
- 132 times in 34 posts
December 20, 2017 at 4:57 pm #1082471Lines 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.
December 20, 2017 at 4:58 pm #1082472no. I just renamed the constructor as said on the google https://cweiske.de/tagebuch/php4-constructors-php7.htm.
AuthorPostsThis 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