I am trying to make a clean WP installation on Centos 5.8 platform using wp-db-abstraction plugin to interate with SQL Server 2008 R2 database.
I also updated PHP with version 5.4.27 where msssql module is enabled. Plus I fixed wp-db-abstraction plugin with those indications I found over Internet like fixing PATTERN variable and some stuffs like the correct path...
The matter is once I call wp-admin/install.php to install into database I get those messages on the page:
Strict Standards: Redefining already defined constructor for class Fields_map in
/var/www/html/wp-content/plugins/wp-db-abstraction/translations/sqlsrv/fields_map.php
on line 36
Strict Standards: Declaration of mssql_wpdb::prepare() should be compatible with
wpdb::prepare($query, $args) in /var/www/html/wp-content/plugins/wp-db-
abstraction/drivers/mssql.php on line 33
WordPress database error: [Incorrect syntax near 'wp_users'.]
SHOW TABLES LIKE 'wp_users'
If I complete installation ignoring messages, then WP wouldn't work well like miss some informations that couldn't write into database or something.
Any indication would be appreciate. Even if it exists a better and newer way to communicate with SQL Server database with latest WP versions. Thanks in advance to everyone!
Cheers,
Luigi
Done by myself... had just to add parameters into plugin's file.
Now I have to figure out the wordpress database error
[Incorrect syntax near 'wpmxp_users'.] SHOW TABLES LIKE 'wp_users'
only... Maybe is that error related to some syntax of new PHP version?...
Related
I have an old Symfony website which is using the framework bundle but no database is required for the content. This works fine till 4.4.18 but upgrading to the latest version is giving the following error:
An exception occurred in driver: could not find driver
I haven't modified DATABASE_URL in .env or configured the driver in config/packages/doctrine.yaml. Is there anyway I can simple disable the use of database?
Thanks to the comment from #cerad, removing doctrine-migrations package from composer.json helped with the issue.
As I am not using a Database for the site, this is fine for me.
if your app doesn't use the database the best course of action is to remove the doctrine/doctrine-bundle and/or symfony/orm-pack (if you've installed the orm support via pack)
if that's not an option than set the DATABASE_URL= to nothing (like that, not the empty string), or if you've hit some bug in dbal dsn parsing give it the dummy sqlite until the issue gets resolved DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
Views PHP module give following error in site audit report:
Unfinished and incomplete, Views PHP permits executable code to be stored in the database with no revisioning; a typo introduced in the Views UI can bring down an entire production site with no accountability. See http://api.drupal.org/api/views for details on how to implement your own custom Views functionality.
How can I deal with this issue?
It can be a bug in some of installed modules. Are you maybe using something called "Pantheon"?
https://www.drupal.org/node/2420591
Anyway, try turning off some modules and see will error still appear.
I am wondering if there is any news for multi line comment directive support for MySql.
I believe the problem is related to:
Mysql dump comments directives and simple comments
Basically it seems SqlScript/MySQLSqlStatementBuilder fail in recognizing as directive a statement in the format:
/*!50001 <STATEMENT SPLITTED IN
MULTI
LINES> */;
I am using version 2.2.1
Additional notes:
the same goes for previous versions (2.1.1), and issues are multiple and not only related to comment directives; theu are also hard to debug because of missing exception trace.
Basically I think parser cannot currently handle pretty standard mysql scripts created with mysqldump; this IMO is a necessary feature for any usage in existing projects at least.
If anybody has suggestions to overcome these issues, it would be highly appreciated.
I am using Flyway 2.1.1 API in Java.
What I am doing is parsing a dump file (only the schema structure) and replace the version dependant comments.
This solution is pretty bad, but waiting for a better support of MySQL dump in Flyway, I didn't find anything else...
So I was developing a site that needed image resize so I decided to use avalanche123/imagine-bundle which uses the imagine library
In my local everything worked perfectly and then I uploaded the project to a shared hosting
When I go to the url generated by imagine bundle prints a zero
So I tried to find out where the problem is and I found it executes until this line
$image = $this->imagine->open($sourcePath);
$this->imagine is an object with class Imagine\Image\ImagineInterface
So when this line is executed it just returns 0
No exception is thrown and nothing is shown in logs
And I don't really know how imagine works inside and it seems no one else had this problem
So does anyone know what's the cause?
The AvalancheImagineBundle uses the Imagine PHP library to compute images. As stated in the README:
Depending on the chosen Image implementation, you may need one of the
following:
GD2
Imagick
Gmagick
It seems that you can choose the driver with the following configuration:
avalanche_imagine:
driver: gd
The value can be gd, imagick or gmagick and gd seems to be the default. Go ahead and see if any of this three is installed on the shared host by outputting phpinfo();. Just search for the particular string and see if it is avaiable.
I've started a C# web application project using subsonic 3.0.3 as my DAL and SQLite for database.
It doesn't have any problem when using SimpleRepo, but the problem occurs when I try to use ActiveRecord/Linq T4 templates.
It says "Metadata file 'System.Data.SQLite' could not be found". The settings.ttinclude is the one provided with SQLite.ttinclude file and its config looks ok, and other files are instructed to use SQLite.ttinclude of course. I've also tested them with an SQL Server database and everything goes fine.
Also tried searching about it on the net and all I could find were these:
Subsonic Google Groups which instructs me to add a reference to System.Data.SQLite to the top of settings.ttinclude. No luck.
Someone at here commented about this issue, and it was answered to check the connection string, which doesn't seem to be my problem, because the app works when I use SimpleRepo.
Is SQLite installed on your machine? You need the .NET driver for it as well (that's what can't be found).