Questions tagged [php7]

PHP 7 is the successor to PHP 5.6, it was released on December 3, 2015. Use this tag for issues relating to development using PHP 7

Filter by
Sorted by
Tagged with
2 votes
0 answers
35 views

Help With Joomla PHP Upgrade

I need a little bit of guidance when it comes to upgrading PHP on a Joomla! site The server is running RHEL 8.7 and I have already updated Lampp on my webserver to xampp-linux-x64-7.4.30-1. (this ...
JoomlaNovice's user avatar
2 votes
2 answers
55 views

Undefined offset: 0 In old com_search override - PHP 8

as you are all probably aware PHP is not my expertise. I'm helping plan a Joomla migration to PHP 8 (J3) and a previous developer has created a com_search override of the default_results.php file. The ...
Dtorr1981's user avatar
  • 532
1 vote
0 answers
36 views

Joomla 4 - 'Edit My Profile' Form - create custom generic form

I have created a custom (com_users/profile/edit.php). I have created a custom form that I would like to use - however, when I save the form - the value do not store in the db and the page does not ...
user2680315's user avatar
1 vote
0 answers
63 views

I can't get $params->set() to work to transfer variable from module to template

I'm trying to get a variable from my module to my template but its not working. In my modules xml I defined: <fields name="params"> <fieldset name="basic"> &...
Jonathan Schmidt's user avatar
1 vote
1 answer
2k views

Trouble linking external css file with Dompdf library

I'm trying to create a Joomla system plugin enabling a user to generate a pdf based on a template. I'm using the Dompdf library. I managed to create a PDF, but linking to an external css file isn't ...
ShaneV's user avatar
  • 21
0 votes
1 answer
277 views

Joomla 4, Error: Class '...\Component\...\Administrator\Model\SimpleXMLElement' not found

Please tell me what the problem may be. I adapt the component for Joomla 4. I get this error, although everything should work. Class '....\Component\....\Administrator\Model\SimpleXMLElement' not ...
MaXX's user avatar
  • 171
0 votes
1 answer
56 views

Joomla routing doesn't work for inner pages on PHP7.4

Whenever I use PHP7.4 I cannot change page, changing back to PHP7.3 works. Is there a PHP setting I need to activate to get the redirects to work? I'm getting ** 404 Not Found ** and it's not my 404 ...
Eoin's user avatar
  • 1,889
1 vote
2 answers
554 views

0 Call to a member function purgePrivate() on null

I just tried to login and I got this error message that I've never seen before. 0 Call to a member function purgePrivate() on null I'm not sure what would have caused it. It's PHP 7.3. Interestingly I ...
Eoin's user avatar
  • 1,889
1 vote
1 answer
109 views

JFactory query to select field value if mulitple conditions are met

I'm basically trying to create a Joomla JFactory query to COUNT and SELECT data if a particular field's value meets my criteria. In "myTable", I may have several records where Field4 may ...
fcollins_mhca's user avatar
1 vote
1 answer
31 views

Mysqli using AS clause not working

I have two tables that are joined. Both have an id column. $query ->select($db->quoteName(array( 'a.id', 'a.address_one', 'a.address_three', 'a.address_two', 'b.id AS myStuff', 'b.person_id' 'b....
user1616338's user avatar
1 vote
0 answers
123 views

Joomla not logging PHP errors to file with system default error_reporting

I'm using Joomla 3.9 with APACHE + PHP 7.0 with these settings php_flag[display_errors] = On php_flag[display_startup_errors] = On php_value[error_reporting] = E_ALL & ~E_DEPRECATED & ~...
Sandro Antonucci's user avatar
2 votes
3 answers
243 views

Cannot Connect To MSSQL Server

I am using php 7 and trying to connect to mssql server. I have this code: <?php $serverName = "server"; //serverName\instanceName $connectionInfo = array( "Database"=>"...
jamesMandatory's user avatar
1 vote
2 answers
50 views

Search Tools not expanding for Advanced Module Manager

My joomla 3.6.4 site has been recently upgraded to Php7.1.33 I am seeing one issue in Advanced Module Manager. "Search Tools" are not expanding for it. It is expanding for Article Editors ...
ronypatil's user avatar
0 votes
0 answers
90 views

Custom component: different redirect when changing language/logging in

I inherited a site with a custom component: an agenda viewer. When I click on an agenda-item from the list and then login (via login module) or change the language, I am not redirected to the agenda ...
jansen's user avatar
  • 1
0 votes
0 answers
68 views

Code works properly but shows data for all users

I am using the latest RS Form Pro with Joomla 3.9, Platform 13.1.0. My code is working properly (thank you guys!) But the data should be limited to each user. The user ID is is not in the table ...
kholt6's user avatar
  • 13
2 votes
2 answers
486 views

Broken website due to outdated installation and host php upgrade - how to migrate/upgrade manually?

My father maintains a website for my sisters small business, recently he has been unable to login and the website only gives a blank page. Upon a little digging on my end I have found out his host ...
Dekks's user avatar
  • 21
1 vote
2 answers
89 views

Trying to display mysql values properly in php

I am trying to display my commissions for each month. I want to display all 12 months with a total for each month. I've started with just January but this is as close as I have come to get to what I ...
kholt6's user avatar
  • 13
0 votes
0 answers
435 views

Joomla 3.9.13 - Error: Failed to start application

I just installed version 3.9 joomla in local using xampp. Once the installation was finished correctly I tried to navigate the site and the backend. After loading a few pages, this annoying error ...
Gabriel91's user avatar
  • 223
1 vote
0 answers
119 views

ob_flush pushes output before Joomla header

I have a module that I've created to test ob_flush buffering off. I need to understand it so I can have some longer modules buffer output to the page as the script goes through long processes. The ...
Charles Wilkins IV's user avatar
3 votes
1 answer
1k views

JHTML::_('behavior.tooltip') — Set tooltip position

I'm trying to set the position of the tooltip in Joomla 3.9.8. I've used: JHTML::_('behavior.tooltip'); At the top of the document. I then have field set as: <?php echo JHTML::tooltip($...
Charles Wilkins IV's user avatar
3 votes
1 answer
285 views

Programmatically set article image

I generate/update several articles through a PHP script (in the cli folder) that parses an external data source (custom tables). This works well. Now, if an article has not yet an image, the script ...
nicolallias's user avatar
0 votes
0 answers
184 views

Access namespaced custom field method from a plugin into another plugin

In one of my previous questions, I learned how to properly set up a namespaced custom form field, but it turns out that it's only available within its plugin scope for some reason. I need the field ...
thednp's user avatar
  • 415
0 votes
1 answer
1k views

Joomla backend not reflecting updated PHP version

I've updated to PHP 7.2.17 through my host's cpanel, but I'm still getting a message in the Joomla backend that my PHP version is not updated. Error We have detected that your server is using ...
Kazawary's user avatar
0 votes
2 answers
334 views

Hikashop: Category Name in products listing div

I want to show the category name of a product, inside the category product listing div (category name inside each product div). I use this code to show manufacturer: <?php $db = JFactory::getDBO();...
geoplous's user avatar
  • 349
3 votes
1 answer
1k views

PHP7.2 Notice: Only variables should be passed by reference in

I got this notice when I changed a Joomla website from PHP 5.6 to PHP7.2 "Only variables should be passed by reference in ... on line 116" The second line is line 116 if($this->isViewExcluded(...
Joflx's user avatar
  • 31
5 votes
1 answer
668 views

PHP 7 Upgrade Breaks Joomla Theme

I have a website running Joomla 3.9.1, which uses the Shape5 - Vertex template (one of Shape5's free templates, although the company is now owned by JoomlArt). I am trying to upgrade to PHP 7.2, but ...
Mike P's user avatar
  • 51
2 votes
1 answer
268 views

0 - Using $this when not in object content

I moved a website from server (PHP 5.6.38) to localhost (PHP 7.2.10). And I receive this error in the page title (in the chrome tab): 0 - Using $this when not in object content While searching ...
dvn22's user avatar
  • 23
0 votes
1 answer
1k views

Problems When I change my PHP version to 7.2(Error 0 Using $this when not in object context )

I have my website in production now, The site works very good with PHP 5.6 and 7.0 but When I try to change the PHP version to 7.2 the website doesn't work. It shows me an error message like this: I'...
rogers's user avatar
  • 1
1 vote
1 answer
93 views

Solidres Data Report for Joomla Admin

I am pretty new to Joomla & PHP so this is a broad question. My client is looking for some custom reports for Admin login on data prepared by Solidres as that Solidres doesn't have those reports....
Sabir Khan's user avatar
2 votes
1 answer
670 views

Upgrade from 3.8.7 to 3.8.8 - Failure - Using $this when not in object context

My site is down completely. Swapping out my custom template with another very small template allows the system to operate but without most positions. I believe that the error "Using $this when not in ...
Phil Schaming's user avatar
0 votes
1 answer
2k views

Upgrading to PHP 7.2 causes 500 Error

I currently have a Joomla 3.8.7 running on a Xubuntu 14.04 LAMP server. The site was working normally until the server was upgraded to PHP 7.2. Now when we try to access the admin login or the site we ...
maleman's user avatar
  • 65
0 votes
1 answer
36 views

different templates based on $item number

foreach ($this->intro_items as $key => &$item) { $this->item = &$item; echo $this->loadTemplate('item'); } I would like to be able to change the template used for specific ...
Chris Armstrong's user avatar
1 vote
2 answers
546 views

Joomla issue - "$this->items = $this->get('Items'); does not work anymore under PHP 7.1 and 7.2

In my component I am assigning the data from the model to the view using class FileUploaderViewFileUploader extends JViewLegacy { // Overwriting JView display method function display($...
Andreas Isele's user avatar
0 votes
1 answer
1k views

After Login waring error You are not authorised to view this resource

I am getting warning error when user logged in. After logged in on top of header show warning message "You are not authorised to view this resource." And when try to download attachment it's showing ...
Sanjay Yadav's user avatar
2 votes
1 answer
266 views

Your PHP Version Will Be Unsupported in Joomla! 3.3

I am using PHP Version 7.0.12 and Joomla Version 3.7.3. And I am facing this message "Your PHP Version Will Be Unsupported in Joomla! 3.3" As per Joomla 3.3 System requirement: Starting with ...
Riyas Muhammed's user avatar
6 votes
3 answers
19k views

How can I fix "The PHP temporary folder is not set" warning/error?

I'm attempting to migrate a Joomla 3.7.1 website onto a new server - and have (mostly) successfully done so using a traditional AkeebaBackup migration. The source site/server is running PHP 5.6.30 ...
Hobbes's user avatar
  • 300
0 votes
1 answer
121 views

K2 Category Filter Extension freezes after selection and filter

Just need a little bit of help with this extension: https://extensions.joomla.org/extension/filter-for-k2/ Basically it is a dropdown filter for K2 articles. My problem is that after you make a ...
Shane Buckley's user avatar
4 votes
3 answers
2k views

PHP 7 - how to get usefull information from an exception message?

After upgrading from PHP5 to PHP7 I get an error page saying: 0 - [] operator not supported for strings I've read that now PHP7 is smarter with exception. But the message I get is totally useless. I ...
AHeavyObject's user avatar
0 votes
1 answer
475 views

Issue with upgrade to php7 and new mysql

I upgraded everything from nginx to php to mysql and everything is configured correctly seeing as i can install a fresh version of joomla, but my previous project is now showing a blank page, no ...
brigitte18's user avatar
9 votes
2 answers
877 views

What changes in code are required to make Joomla 3.5 extensions PHP7 compatible?

(Please bear with me, I am sorry but I just can't ask this quickly.) We are all hardly waiting for Stable Version of Joomla 3.5.0, aren't we? RC3 RC4 was released today and it is just a matter of ...
Mikan's user avatar
  • 3,007