How To Joomla Install in WAMP SERVER 2.2? - php

Hello
I am using joomla insttalation in WAMP Server 2.2 installation all are the complate, after that i RUN joomla this type of error occur in home page how to remove that.....plz help me
NOTICE:Array to string conversion in C:\wamp\www\joomlawebsite\components\com_banners\models\banners.php on line 44
Array to string conversion in C:\wamp\www\joomlawebsite\components\com_banners\models\banners.php on line 45

If you are using a 5.4 version of PHP, try downgrading to 5.3 (that should fix the issue as per this Joomla thread.)

Related

Google Api PHP Client Syntax Error on PHP 7

OS: macOS Big Sur
PHP version: 7.4.1
Package name and version: google/apiclient: ^2.12.3
Whenever I switch the PHP version to 7.4.1 I get this error
Parse error: syntax error, unexpected 'static' (T_STATIC) in /Users/webtechstreet4/Local Sites/fvtest/app/public/wp-content/plugins/form-vibes-pro/vendor/psr/cache/src/CacheItemInterface.php on line 75
The library works great on PHP 8 but gives the above error when switching to PHP 7.
Screenshot
Actually, I sorted it out by changing the system PHP version and running composer update.
I thought I needed to change the site PHP version but it was actually the system PHP version.
here is the GitHub issue link: https://github.com/googleapis/google-api-php-client/issues/2246
it is because, static return type is available only for PHP 8, I have same issue, just for temporary you can change
.\vendor\psr\cache\src\CacheItemInterface.php
line number 75 just remove return type static like this
public function set($value);

Quickest way to get Expression Engine v 2.5.5 working with PHP7

A client’s host has recently updated their server to run PHP 7, which has broken their EE 2.5.5. site (“Call to undefined function mysql_connect()”).
I tried upgrading EE to version 2.11.9 but get errors:
Frontend: can’t find safecracker_lib
Control Panel: PATH_MOD not defined in mod_structure.php, fixing this leads down a rabbit hole starting with an error related to not being able to instantiate the pagination class somewhere.
I just need to get the site running until I build a new site, what is the quickest way I can get the site running with PHP 7?
In your config folder there is a file named database.php
change the line:
$db['expressionengine']['dbdriver'] = 'mysql';
to
$db['expressionengine']['dbdriver'] = 'mysqli';
mysql_connect() has been deprecated since PHP 5 and removed in PHP 7 so you cannot use this function or any of the old mysql functions.
You need to upgrade your codebase, or downgrade your PHP version (highly discouraged).
In regards to your missing pagination class, you may not have implemented core classes that were required when upgrading.
Try running on your command line:
php system/ee/eecms upgrade
You can also read the documentation on how to upgrade the codebase for Expression Engine here.

Error in class.phpmailer.php

I am using the phpmailer api to send mails in a joomla site with the RSForm! Pro 1.52.9 component.
All was working ok but today I start to getting the following error when summiting a form build with the RSForm component:
PHP Fatal error: Only variables can be passed by reference in .../libraries/vendor/phpmailer/phpmailer/class.phpmailer.php on line 1182
I am using joomla 3.6 and my php version is php 5.3
The problem was resolved by changing the php version to 5.6.

Magento array to string conversion bug

When i run my Magento 1.9 CE website on new php version(7.0.4) it start giving me error
Array to string conversion in /var/www/bigliving.local/public_html/app/code/core/Mage/Core/Model/Layout.php on line 555
Previously is on php 5.4 and working fine.
Found solution for this issue, i follow the following steps and it works for me.
Go in line number on 555 of this file /var/www/bigliving.local/public_html/app/code/core/Mage/Core/Model/Layout.php change the code to
$out .= $this->getBlock($callback[0])->{$callback[1]}();
Change the magento root folder and index.php permission to 755
Try the PHP 7 compatibility extension for Magento 1
Edit: As pointed out in the comments below, the PHP 7 compatibility extension is deprecated, and PHP 7.2 support patches have been released:
https://inchoo.net/magento/magento-1-official-php-7-2-patches/

Deprecated error in pass by reference in latest version of localhost

All the project is error free on localhost vertrigo_222 (and also on livehost).
Now I am trying to upgrade my localhost to latest version vertrigo_230.
I am facing following deprecated error:
Here is line number 1170 and 1171:
calculate_city_row_col($row['attacker_city_id'], &$att_city_row, &$att_city_col);
calculate_city_row_col($row['defender_city_id'], &$def_city_row, &$def_city_col);
Please give me some solution.
Thank you in advance.
I think you can try remove & before $att_city_row and $att_city_col, $def_city_row, $def_city_col

Categories