Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

PHP warnings thrown with page build addon

Featured Lock Resolved Issue
Hi

I've been cleaning my own code and notices a whole load of warnings thrown by PHP 7.2.

I'm using:-


PHP 7.2.8 (cli) (built: Aug 28 2018 16:32:29) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans


Here's the output which you might pass to the developers.


[20-Nov-2018 18:54:13 Europe/London] PHP Warning: Use of undefined constant ture - assumed 'ture' (this will throw an Error in a future version of PHP) in /Users/Paul/Documents/GitHub/nomadjoomla/components/com_sppagebuilder/addons/carouselpro/site.php on line 93
[20-Nov-2018 18:54:13 Europe/London] PHP Stack trace:
[20-Nov-2018 18:54:13 Europe/London] PHP 1. {main}() /Users/Paul/Documents/GitHub/nomadjoomla/index.php:0
[20-Nov-2018 18:54:13 Europe/London] PHP 2. Joomla\CMS\Application\SiteApplication->execute() /Users/Paul/Documents/GitHub/nomadjoomla/index.php:49
[20-Nov-2018 18:54:13 Europe/London] PHP 3. Joomla\CMS\Application\SiteApplication->doExecute() /Users/Paul/Documents/GitHub/nomadjoomla/libraries/src/Application/CMSApplication.php:195
[20-Nov-2018 18:54:13 Europe/London] PHP 4. Joomla\CMS\Application\SiteApplication->dispatch($component = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/libraries/src/Application/SiteApplication.php:233
[20-Nov-2018 18:54:13 Europe/London] PHP 5. Joomla\CMS\Component\ComponentHelper::renderComponent($option = *uninitialized*, $params = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/libraries/src/Application/SiteApplication.php:194
[20-Nov-2018 18:54:13 Europe/London] PHP 6. Joomla\CMS\Component\ComponentHelper::executeComponent($path = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/libraries/src/Component/ComponentHelper.php:357
[20-Nov-2018 18:54:13 Europe/London] PHP 7. require_once() /Users/Paul/Documents/GitHub/nomadjoomla/libraries/src/Component/ComponentHelper.php:382
[20-Nov-2018 18:54:13 Europe/London] PHP 8. ContentController->execute($task = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/components/com_content/content.php:43
[20-Nov-2018 18:54:13 Europe/London] PHP 9. ContentController->display($cachable = *uninitialized*, $urlparams = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/libraries/src/MVC/Controller/BaseController.php:710
[20-Nov-2018 18:54:13 Europe/London] PHP 10. ContentController->display($cachable = *uninitialized*, $urlparams = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/components/com_content/controller.php:113
[20-Nov-2018 18:54:13 Europe/London] PHP 11. ContentViewArticle->display($tpl = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/libraries/src/MVC/Controller/BaseController.php:672
[20-Nov-2018 18:54:13 Europe/London] PHP 12. JEventDispatcher->trigger($event = *uninitialized*, $args = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/components/com_content/views/article/view.html.php:193
[20-Nov-2018 18:54:13 Europe/London] PHP 13. PlgContentSppagebuilder->update($args = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/libraries/joomla/event/dispatcher.php:160
[20-Nov-2018 18:54:13 Europe/London] PHP 14. PlgContentSppagebuilder->onContentPrepare($context = *uninitialized*, $article = *uninitialized*, $params = *uninitialized*, $page = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/libraries/joomla/event/event.php:70
[20-Nov-2018 18:54:13 Europe/London] PHP 15. SppagebuilderHelper::onIntegrationPrepareContent($text = *uninitialized*, $option = *uninitialized*, $view = *uninitialized*, $id = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/plugins/content/sppagebuilder/sppagebuilder.php:88
[20-Nov-2018 18:54:13 Europe/London] PHP 16. AddonParser::viewAddons($content = *uninitialized*, $fluid = *uninitialized*, $pageName = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/administrator/components/com_sppagebuilder/helpers/sppagebuilder.php:155
[20-Nov-2018 18:54:13 Europe/London] PHP 17. AddonParser::getAddonHtmlView($addon = *uninitialized*, $layouts = *uninitialized*) /Users/Paul/Documents/GitHub/nomadjoomla/components/com_sppagebuilder/parser/addon-parser.php:266
[20-Nov-2018 18:54:13 Europe/London] PHP 18. SppagebuilderAddonCarouselpro->render() /Users/Paul/Documents/GitHub/nomadjoomla/components/com_sppagebuilder/parser/addon-parser.php:424

11 Answers

Toufiq - Staff

More than a month ago #Permalink
Hi there,

You have mention own code. Please clarify more details.

-Thanks

Paul Blacknell

More than a month ago #Permalink
I have been working on my own php code unrelated to this problem and I notices all these warning being generated by the Joomshaper module

Toufiq - Staff

More than a month ago #Permalink
Hi there,

Did you made the own addon for you? Or did you loaded large scale addon inside page builder module?

-Thanks

Paul Blacknell

More than a month ago #Permalink
No. My addon is nothing to do with pagebuilder. I am seeing these warnings in the php error log

Toufiq - Staff

More than a month ago #Permalink
Hi there,

Could you send me the Cpanel access via PM? I will forward to our developer team.

-Thanks

Paul Blacknell

More than a month ago #Permalink
Sorry. I can't do that.

Let me know what information you require and I will get it for you

Paul

Toufiq - Staff

More than a month ago #Permalink
Hi there,

Can you give me an akeeba backup of your site? I will go to check my server. Is it possible?

-Thanks

Paul Blacknell

More than a month ago #Permalink
yes, tell me where to put it

Paul Blacknell

More than a month ago #Permalink
I found what was wrong. You seem to have fixed it in the latest patch


$bg = (isset($value->bg) && $value->bg) ? JURI::base( ture) . '/' . $value->bg : '';


ture was a mistype of ture

Paul Blacknell

More than a month ago #Permalink
There still errors being thrown in line 53

components/com_sppagebuilder/addons/carousel/site.php


if $value->content is not set but $value->title is set then line 53 still runs
if((isset($value->title) && $value->title) || (isset($value->content) && $value->content) ) {

Paul Blacknell

More than a month ago #Permalink
I can send you the Akeeba if that helps but it only happens when a webbot hits the site.


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 157
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 85
Toufiq

Toufiq

Total Accepted Answers: 26
Pavel

Pavel

Total Accepted Answers: 3
Al Mamun

Al Mamun

Total Accepted Answers: 3

113

Templates

289359

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us