-
AuthorPosts
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 30, 2017 at 2:33 am #1037945Hi
May i know the Joomla and Purity iii version you are using ? So i can replicate the issue at my end.
Regardsbascherz Friendbascherz
- Join date:
- January 2006
- Posts:
- 5
- Downloads:
- 4
- Uploads:
- 3
- Thanked:
- 1 times in 1 posts
May 30, 2017 at 2:32 pm #1038137Joomla 3.7.2 and Purity III 1.2.0.
Thanks for the quick response.
Bruce Scherzinger
Vienna, VA USAPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 31, 2017 at 2:03 am #1038272Hi
Can u share the issue details? because i do not found any issue in Article edit front end http://prntscr.com/fe25sk
Joomla 3.7.2
Purity III 1.2.0
T3 2.6.5Regards
bascherz Friendbascherz
- Join date:
- January 2006
- Posts:
- 5
- Downloads:
- 4
- Uploads:
- 3
- Thanked:
- 1 times in 1 posts
May 31, 2017 at 11:49 pm #1038606The images attached to my first post in this topic show what was happening, where the bug was, and how I fixed it. Basically, when editing an article in any editor (TinyMCE, JCE, whatever) in the site front end, no buttons at all were visible. Looking at the page with Chrome’s Inspect feature showed the template hadn’t loaded at all. That’s when I turned the site debug mode to developer and got the following message on the site front end whenever I tried editing an article:
Fatal error: Cannot use object of type ContentViewForm as array in /home/userid/public_html/mydomain.com/plugins/system/t3/base-bs3/html/layouts/joomla/edit/params.php on line 13
That’s what led me to those lines in the second attached image. The code I used to correct the errant file was taken from another params.php file that came with the same T3 version, which is explained in the first post.
Hopefully you’ve got all you need now.
Bruce Scherzinger
Vienna, VA USAbascherz Friendbascherz
- Join date:
- January 2006
- Posts:
- 5
- Downloads:
- 4
- Uploads:
- 3
- Thanked:
- 1 times in 1 posts
June 1, 2017 at 12:06 am #1038609Your statement makes me wonder if my site updated T3 to v2.6.5 correctly. Because I was having this problem with the previous version also.
Bruce Scherzinger
Vienna, VA USAbascherz Friendbascherz
- Join date:
- January 2006
- Posts:
- 5
- Downloads:
- 4
- Uploads:
- 3
- Thanked:
- 1 times in 1 posts
June 1, 2017 at 12:06 am #1038610Sorry for the duplicate post. This site has some serious performance issues.
Bruce Scherzinger
Vienna, VA USAPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
June 1, 2017 at 3:21 am #1038662This reply has been marked as private.bascherz Friendbascherz
- Join date:
- January 2006
- Posts:
- 5
- Downloads:
- 4
- Uploads:
- 3
- Thanked:
- 1 times in 1 posts
July 14, 2017 at 7:51 pm #1048744Sorry it has taken me so long to post this response. I was in the hospital with a heart condition for a while and have been in recovery since. All is well now and I am finally getting around to some things.
The problem symptom appeared whenever I would open the article editor in the front end of my site (did not matter which one: JCE, TinyMCE, etc.). The page would load without ANY styling at all. It was obvious when inspecting the page source that the template did not load at all. As a result, the editor was missing all buttons, did not have links to Cancel, Save, etc. The symptom did NOT appear when editing the same article with the same editor in the site back end.
So then I turned on maximum debug messages in the site global configuration and tried editing an article in the site front end again. A PHP error pointing me to the errant file and line of code was output at the bottom of the page (reported earlier in this discussion):
Fatal error: Cannot use object of type ContentViewForm as array in /home/userid/public_html/mydomain.com/plugins/system/t3/base-bs3/html/layouts/joomla/edit/params.php on line 13
The file at: /home/userid/public_html/mydomain.com/plugins/system/t3/base-bs3/html/layouts/joomla/edit/params.php
had the following code starting on on line 13:
$form = $displayData['form']; $fieldSets = $displayData['fieldsets']; $displayData = $displayData['params'];
Those are clearly array references. Discovering there were other files in the T3 distribution named "params.php", I found one that had similar but different code in it using different methods, and I changed the errant code to match it (see below):
$form = $displayData->getForm(); $fieldSets = $form->getFieldsets('params'); if (empty($fieldSets)) { $fieldSets = $form->getFieldsets('attribs'); } if (empty($fieldSets)) { return; }
which I found in this file: /home/userid/public_html/mydomain.com/plugins/system/t3/base/html/layouts/joomla/edit/params.php
That resolved the issue completely.
So I wondered why another site I was working on and was using the Purity III template also did not show this issue. One big difference is that my site was migrated from 2.5, back when Purity III was bundled with Joomla. The other site (without the problem) was built from scratch using Joomla 3.7. This made me think that perhaps the errant file may not have been included in the upgrade package or somehow got overlooked by the extension upgrade installer. I never really figured out why this apparently older code was on my site.
Hopefully, this helps you to find the source of the problem.
Regards, Bruce
- This reply was modified 7 years, 5 months ago by bascherz.
Bruce Scherzinger
Vienna, VA USAPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
July 17, 2017 at 1:02 am #1048921Hi
Thanks, i will share it with concern department to look over this issue.Regards
-
AuthorPosts
This topic contains 10 replies, has 3 voices, and was last updated by nsu-admin 7 years, 4 months ago.
The topic ‘Bug found in T3 2.6.5’ is closed to new replies.