R
R
runprogr2019-08-19 23:26:41
WordPress
runprogr, 2019-08-19 23:26:41

Wordpress is not friendly with gulp browserSync, why?

Good afternoon.
There is an installed Open Server
. There is a project on Wordpress, which is located in the localhost/wp/ folder.
There is a gulp folder on the desktop, which, accordingly, is configured for building projects. It uses browsersync, which, when 'watch' is called, opens the site at localhost:8000/src/
If I just move all the files from localhost/wp/ to gulp/src , then when I open the site, it gives the error 'Fatal error: Uncaught Error: Call to undefined function mysql_connect()' and so on.
If I try to install Wordpress from scratch into the gulp/src folder, then during the installation at the step with the sql database data, the error 'The site encountered temporary technical problems.' and won't let you finish the installation. If you create the wp-config.php file manually and add the localhost database, then again the error
'Fatal error: Uncaught Error: Call to undefined function mysql_connect()' appears on the page, and '127.0.0.1:50565 [200]
is written in the console
]: /src/ - Uncaught Error: Call to undefined function mysql_connect() in C:\Users\'
What could be the problem ? Thanks for any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
runprogr, 2019-08-20
@runprogr

One and a half days of enumeration of all possible options gave the result.
The problem was that
1) The domain with the galpa folder was not added to the openserver. Moved the galpa folder next to the localhost folder, added a new domain to the settings.
2) Openserver did not change the hosts file, which is necessary for correct operation. I ticked the settings, disabled the blocking of changes to the hosts file in the antivirus, everything worked.
I hope this helps someone and saves time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question