xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby lse123 » 05. November 2023 04:47

is the installation of XAMPP 7.0.33
identical to the installation of XAMPP 8.2.4...? in Linux or Windows 10/11...?
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby Nobbie » 05. November 2023 12:38

There is a FAQ for Xampp Linux see https://www.apachefriends.org/faq_linux.html

Do you have basic linux skills? If not, i dont think you will succeed. Its not the same as Windows, especially user rights and file rights are handled different.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby Nobbie » 05. November 2023 13:51

I have seen you request from prestashop.com forum where you ask about this error:

I am getting errors such as:

Uncaught Error: [] operator not supported for strings in /home/xyz123/public_html/shop/classes/db/DbQuery.php:70


Instead of installing an old PHP version (which seems to be a very difficult job), it looks for me way easier to fix that PHP error. Edit DBQuery.php and replace the following lines (thats from your request):

Code: Select all
        {
                if (!empty($table))
                        $this->query['from'][] = '`'._DB_PREFIX_.$table.'`'.($alias ? ' '.$alias : '');
                return $this;
        }


by these lines (which fixes the error):

Code: Select all
        {
                if (!empty($table)) {
                        if (!is_array($this->query['from']))
                                $this->query['from'] = array();

                        $this->query['from'][] = '`'._DB_PREFIX_.$table.'`'.($alias ? ' '.$alias : '');                       
                }
                return $this;
        }


That should fix the error.

P.S.: According to the error message and to the path mentioned there (/home/xyz123/public_html/shop/classes/db/DbQuery.php), i can see, that your shop and server already is running on linux, not on WIndows. Why do you ask for Windows Xampp??
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby lse123 » 05. November 2023 14:41

OK,
I will read the FAQ soon.

Yes, I have Linux skills, ...

I have a VPS Web Server LAMP PHP 7.0 live on the website --- but migrating to a newer VPS web server LAMP minimum: PHP 7.3.
About, this installation of PHP 7.0 for the e-shop [VPS expires 08-Nov-2023], modified to PHP 7.1, and NOT working, Needs at most PHP 7.0.33... So, bring it back to 7.0 till the expiration.
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby lse123 » 05. November 2023 14:44

I want to have a local host installation... because my LAMP VPS Live installations minimum have PHP 7.3/7.2 rather than 7.0.33 and below...
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby lse123 » 05. November 2023 14:50

Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby Nobbie » 05. November 2023 19:34

Its all on you. I wouldnt go that way, its way easier to fix Prestashop (see above).

Good luck, i cannot help on that.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby lse123 » 06. November 2023 02:23

If it is easy tell me URLs on how to install modules like mcrypt[ https://docs.prestashop-project.org/1-6-documentation/english-documentation/getting-started/what-you-need-to-get-started ], in XAMPP PHP 7.0.33... Linux and Windows...?
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby lse123 » 06. November 2023 02:35

try these are OK
?

https://www.google.com/search?q=install+mcrypt+LAMP+ubuntu&oq=install+mcrypt+LAMP+ubuntu

https://webhostinggeeks.com/howto/how-to-install-mcrypt-extension-on-ubuntu/

https://www.google.com/search?q=install+mcrypt+lamp+windows+10

https://community.magento.com/t5/Installing-Magento-2-x/How-can-install-mcrypt-in-xampp-for-windows-10/td-p/90003

https://copyprogramming.com/howto/download-and-install-the-php-mcrypt-extension-under-windows-10
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby lse123 » 06. November 2023 02:47

ARE THESE STEPS OK FOR XAMPP 7.0...?

How can I install xampp in ubuntu?
=======================================================

Related
How can I install XAMPP in Ubuntu?
Originally Answered: How can I install xampp in ubuntu?

If you want to do a fresh installation, follow this
Note : LAMPP is the Linux specific version of XAMPP.
1. Download LAMPP-Server using this command $sudo apt-get install lamp-server^
2. Goto https://www.apachefriends.org/download.html and download the version of LAMPP software that you want for Linux (Ubuntu).
3. Open your Terminal and locate the file (by default it downloads into the Downloads folder) cd Downloads
4. Execute this command sudo chmod +x xampp-linux-x64-7.1.7-0-installer.run Note : The version of XAMPP you'll download might be different, so change the version in this command accordingly. You'll be asked for your system's password
5. Now go into SuperUser mode sudo su
6. Run the installer, but don't close the Terminal ./xampp-linux-x64-7.1.7-0-installer.run Note: Again change the version for executing this command. A dialog box will open, if you get an error, ignore it. In the dialog box, click next(for each step) and move through the process of installation. Once XAMPP is installed, click finish.
7. Go back to your Terminal and change the directory cd /opt/lampp
8. To set a password, type ./lampp security Press y(Enter) and enter a new password and re-enter this password again to confirm
9. Start XAMPP ./xampp start
10. Type exit(Enter) to exit the SuperUser
11. To start LAMPP, execute this command sudo /opt/lampp/lampp start
12. To stop LAMPP, execute this command sudo /opt/lampp/lampp stop

From <https://www.quora.com/How-do-I-install-mcrypt-on-Xampp-Windows>
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby Nobbie » 06. November 2023 12:25

I dont try it for you. Simply download it and try, there is no other option. I dont know the installation steps of superold products, how can i?
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby lse123 » 07. November 2023 04:30

OK, about old versions of XAMPP [php 7.0.33], do you think it is OK to install in a recent Linux VM e.g. Ubuntu 20.04 or 22.04...? I will try soon, and update the post here...
Leonidas Euripide Savvides
lse123
 
Posts: 186
Joined: 15. November 2008 13:49
Location: Polis, Paphos
XAMPP version: 8.2
Operating System: Windows 11 64-bit PRO

Re: xampp 7.0.x fails - php 7.0 Prestashop 1.6.0.9

Postby Nobbie » 07. November 2023 12:15

I think i simply had downloaded and installed it, what may take 2 minutes at all, instead of asking, asking, asking,... and then i would know immediately if it works.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Previous

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 210 guests