- Posts: 21
COMMUNITY FORUM
error in joomla "tag" page
- NIccolò Angeli
-
Topic Author
- Offline
- Junior Member
Lefteris wrote: Try to add the following code right after line 86:
if(is_string($params)) { $params = class_exists('JParameter') ? new JParameter($params) : new JRegistry($params); }
Still not woking for me, sorry :-(
this is the code I have now from line 82 to 91, just to be sure I inserted it correctly
// Control external parameters and set variable for controlling plugin layout within modules
if (!$params) {
$params = class_exists('JParameter') ? new JParameter(null) : new JRegistry(null);
}
$parsedInModule = $params->get('parsedInModule');
if(is_string($params))
{
$params = class_exists('JParameter') ? new JParameter($params) : new JRegistry($params);
}
Please Log in or Create an account to join the conversation.
- Bob
-
- Offline
- New Member
- Posts: 11
I have set up a local version of my site using MAMP and turned off all 3rd party extensions and plugins and many Joomla items that are not necessary and still get the same error. I've also upgraded to 4.7.1 from the link in this thread with no changes.
Is there something I can revert to that will make this go away until it can be fixed? Is it a certain version of Joomla where this breaks? Was it 3.4.4 for everyone having the problem?
I tried the fix in post www.joomlaworks.net/forum/allvideos/42999-error-in-joomla-tag-page?limitstart=0#147551 and finds it helps but does not fix the issue.
Thanks for any suggestions.
Please Log in or Create an account to join the conversation.
- Bob
-
- Offline
- New Member
- Posts: 11
My live site is broken, so I made a copy and loaded it on MAMP on a local machine. It was also broken. After trying a bunch of things, mostly turning off everything I could get away with, and cleaning up some old data from the live site I exported a new MySQL dump of the live site database and loaded it into my local version. Now the local version was working! I hopefully tried wiping and re-uploading to the live server using the same MySQL dump but it didn't fix the live version.
The PHP settings are different for the local and the live server. I'm attaching the specs for each, labeling one Broken and the other Working to see if any clues can be found there.
The broken one is using PHP 5.5.27 and the working one on MAMP is using 5.5.26 but also works with 5.6.10
dl.dropboxusercontent.com/u/4014332/Broken.pdf
dl.dropboxusercontent.com/u/4014332/Working.pdf
Please Log in or Create an account to join the conversation.
- Bülent Özden
-
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- Bob
-
- Offline
- New Member
- Posts: 11
There must be something I can change as it did not work on MAMP at first but now it does.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
if (!$params) {
$params = class_exists('JParameter') ? new JParameter(null) : new JRegistry(null);
}
if(is_string($params))
{
$params = class_exists('JParameter') ? new JParameter($params) : new JRegistry($params);
}
$parsedInModule = $params->get('parsedInModule');
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- NIccolò Angeli
-
Topic Author
- Offline
- Junior Member
- Posts: 21
Lefteris wrote: The fix i provided solves the issue for me. Just ensure that you have applied correctly. The final code ( lines 83 - 90 ) should look like:
if (!$params) { $params = class_exists('JParameter') ? new JParameter(null) : new JRegistry(null); } if(is_string($params)) { $params = class_exists('JParameter') ? new JParameter($params) : new JRegistry($params); } $parsedInModule = $params->get('parsedInModule');
Thanks a lot, is finally working! :-)
Please Log in or Create an account to join the conversation.
- Bob
-
- Offline
- New Member
- Posts: 11
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Nicolaie Constantinescu
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Pola
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
You are welcome.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Marcelo Mig
-
- Offline
- New Member
- Posts: 1
It should be incorporated in the next release of AllVideos.
Please Log in or Create an account to join the conversation.
- Tim Coldwell
-
- Offline
- New Member
- Posts: 10
This is the php I have:
imgur.com/RC7Q1Uu
Thanks
Please Log in or Create an account to join the conversation.
- Tim Coldwell
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
Have you tried the fix from www.joomlaworks.net/forum/allvideos/42999-error-in-joomla-tag-page?start=20#147830 ?
It is verified from several users, it should work fine.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- JoomlaWorks
-
- Offline
- Admin
- Posts: 6227
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- George
-
- Offline
- New Member
- Posts: 18
Fatal error: Call to a member function get() on string in ....\plugins\content\jw_allvideos\jw_allvideos.php on line 86
Lines 83-88 in the last update are:
if (!$params) {
$params = class_exists('JParameter') ? new JParameter(null) : new JRegistry(null);
}
$parsedInModule = $params->get('parsedInModule');
I changed them with:
if(is_string($params))
{
$params = class_exists('JParameter') ? new JParameter($params) : new JRegistry($params);
}
$parsedInModule = $params->get('parsedInModule');
I am using Joomla 3.5.1 with php7.
I am not sure if I did it right but now I can see my list of content tags that have that call the plugin.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You are talking about the 4.8 DEV, right?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- George
-
- Offline
- New Member
- Posts: 18
Please Log in or Create an account to join the conversation.