Hot answers tagged

5

Ok first thing's first. Joomla 3.5.0 stable will be released tomorrow next monday :) I take a step back and firstly take a backup of your site and install it on a subdomain or your localhost, running PHP 7.0.4. Once done, thoroughly test it. As for the extensions, I Nicolas from Akeeba already supports PHP 7 and other popular extensions will most likely ...


4

For Joomla on php7+ non-fatal errors no longer contain the file and line in the error. The trick is to handle the output of these errors in your template's error.php file. Add the file if it doesn't exist. With a number of templates (including beez) they will show you the stacktrace (and thus also the location of the call the threw the error) if you have ...


4

its a bug that will be fixed in the next release - nothing to worry about


3

From the call stack it is obvious that a function call fails in vertex cms_core_functions.php, which function tries to load the modules on your page in positions, but instead of 2 arguments, it gets only 1. It expects the modules' $name and $style and it gets only one of them. From PHP 7.1 this is handled as an error. Until PHP 7.1 it was only a warning and ...


3

Firstly, I'll just point out that behavior.tooltip which is based on the JHtmlBehavior class, is old and deprecated, so I will base my answer on the newer Bootstrap tooltips. Take the following HTML markup: <a href="#" title="The text for the tooltip">Some link</a> You can then utilise the JHtmlBootstrap class method, like so: JHtml::_('...


3

So basically your question is: how to become a Joomla plugin/component developer? - since you need a specific plugin/component which extends another Joomla component. Since you have a quite nice background (13 years) in Java programming, now you have to learn of course PHP (which you can do quite easily), then you have to deeply study the Joomla CMS and ...


3

The random image module has an issue in Joomla 3.8.8. For details, see: https://docs.joomla.org/J3.x:Module_random_image_PHP_Error_after_3.8.8 The solution can be found here: https://github.com/joomla/joomla-cms/pull/20533/files


3

Likely Joomla will work without issues even with the php's tmp directory not being set. However, if you get issues, or simply want to get rid of this warning in you Joomla Admin, then you have to define in your php configuration the upload-tmp-dir directive. Note that setting up the hosting/server environment is not exactly a Joomla question. There is ...


2

Because the function argument contains a & at the beginning, it requires a variable to be passed by reference rather than referencing an object value directly. So you'll need to replace this: if ($this->isArticleExcluded(JRequest::getInt('id', 0))) { } with this: $id = JFactory::getApplication()->input->get('id'); if ($this->...


2

This is NOT an answer to my question, I just wanted to share a link which I just found and which might be helpful in upgrading our Joomlas to 3.5: There is a Google Doc "List of Joomla! Extensions Supporting Joomla! 3.5 and PHP 7", which is publicly available and maintained by community (we are talking about Joomla, after all :-) ). I know I should have ...


2

I don't see set() in the JTable docs. You also need to remember to re-encode the full column value before storing. The following is an untested snippet. $db = JFactory::getDbo(); $query = $db->getQuery(true) ->select(db->qn("item_id")) ->from($db->qn("#__fields_values")); // build all of the non-changing clauses for ...


1

Look in your .htaccess file to see what version of PHP was added via cPanel. Depending on the host it is usually reflected in either .htaccess or a php.ini file in the root of your directory. Just modify that file to the version you want and it should fix things. Also if you have a server running SuperCacher or an equivalent file caching module, clear that ...


1

This code will display the brand name of each product on the listing. For the category name, you would need to do something like that instead: <?php $db = JFactory::getDBO(); $db->setQuery('SELECT category_name FROM ' . hikashop_table('category') . ' AS c LEFT JOIN ' . hikashop_table('product_category') . ' AS pc ...


1

Don't quote me on this but I have a feeling it may be due to the mixing of curly braces and alternative syntax. I've rewritten your modChrome using curly braces: function modChrome_myCatMod($module, &$params, &$attribs) { $moduleTag = $params->get('module_tag', 'div'); $headerTag = htmlspecialchars($params->get('header_tag', ...


1

Step 1: Just upload the upgrade package to the server via ftp or extract in cpanel file manager. Step 2: You will see an error after installation in the administration site only. Go to Extensions, Manage, Database and press "FIX" Button.


1

What 3rd party extensions do you have? My guess is your have a plugin or something that is having issues and that is causing the error. Make sure error reporting is set to E_ALL (check in phpinfo.php) so it catches depreciated errors as well.


1

I have Resolved this issue this is very basic solution . 1. You must have to give permissions public to all special and register menu. 2:You must have to give permissions public to all special and register content . After This .warning error Resolved


1

The error you got after your PHP version upgrade says it loud: the [] operator not supported for strings. You are probably trying to push an array into a string or something of that sort. You would have gotten an Array to string conversion error should the string in question be empty (depending on your new PHP version and as well as defined error ...


Only top voted, non community-wiki answers of a minimum length are eligible