Comments (7)
Probably needs more info, like
OpenMage version, Mysql Server version (any different settings?) etc.
from magento-lts.
Oh. I am sorry, I put those in but then re-arranged the whole post.
This installation is nothing special disregarding the fact, that it is currently broken :D
from magento-lts.
Whats the exact mysql error your database complains?
from magento-lts.
UPDATE
core_email_queue
SET WHERE (message_id='23912')
Set-part is empty?
from magento-lts.
I'm on the main branch, php82, mysql8, caches all enabled (also with all disabled I've the same behaviour), 3 mails in core_email_queue:
![Screenshot 2023-07-16 alle 09 15 19](https://private-user-images.githubusercontent.com/909743/253792826-e0654a33-c90c-4af6-9a34-0ad4d124960d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI3NjAwNDcsIm5iZiI6MTcxMjc1OTc0NywicGF0aCI6Ii85MDk3NDMvMjUzNzkyODI2LWUwNjU0YTMzLWM5MGMtNGFmNi05YTM0LTBhZDRkMTI0OTYwZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNDEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDQxMFQxNDM1NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NjViMjYyNWQwNzE5ZGRiMDczYTQzMWUxZDlmOGFiMTFhMmFmN2Y3ZGQ1ZTBmMGVjMWRjZTE2NDJiMjVlMmQ0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.vENqi2Sxm9uu3MviNRS2O90yPlqPfzDoOhcGPgOt_xM)
after running cron.php they get marked as processed:
![Screenshot 2023-07-16 alle 09 15 36](https://private-user-images.githubusercontent.com/909743/253792839-60c161d8-a721-41ea-9008-6405f9399e21.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTI3NjAwNDcsIm5iZiI6MTcxMjc1OTc0NywicGF0aCI6Ii85MDk3NDMvMjUzNzkyODM5LTYwYzE2MWQ4LWE3MjEtNDFlYS05MDA4LTY0MDVmOTM5OWUyMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNDEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDQxMFQxNDM1NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZDI0YWVlYmI2MWFjOTE4MmJiOWNhNjMyNjZhMThjMzU2ZGFlNWVlOWNjOTFjMTQ2NDc2NzM2YWI3NjRjMTg5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.aJ4JVnwfq23E9hhi3nwZUiTC1zu-3Ra5mKEo1JPYWcA)
from magento-lts.
I tried to replicate this issue without any luck, using a fresh instance of the following
Windows 10, DDEV + WSL (Apache + PHP 8.2 + MariaDB)
OpenMage 20.1.0-rc7 (using git clone
)
Magento Sample Data (using ddev openmage-install
)
I truncated before running the tests both cron_schedule and core_email_queue tables. I placed an order. Cron is running then the email is triggered by MailHog
This is a screenshot related to the table content. The request was processed (the last column).
Possible solutions, taking in consideration the OpenMage file system is untouched:
- Empty the table core_email_queue (TRUNCATE), or
- Delete the table core_email_queue and re-create it
If not working you have missing or modified files. As Sven pointed out above the query is wrong.
Syntax error or access violation:
1064 You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
'WHERE (message_id='23912')' at line 1,
query was: UPDATE `core_email_queue` SET WHERE (message_id='23912')
UPDATE statement has this syntax
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
In your case SET has missing arguments.
from magento-lts.
I found it out. And I am really sorry to have wasted your time.
The key information here is actually really something I added kinda ironically.
Maybe hosting at Mittwald.de 🤷
They have an Apache2 + FPM setup. Mix in a little OPCache inside there and a symlink release setup.
Old release: current -> release-18
New release: current -> release-19
Apache2 coming in being configured to go to current
.
The error log of the cron was not a good insight.
The error log of the web requests gave more insight (with other exceptions):
#13 */html/release-19*/webroot/app/.....
#14 */html/release-18*/webroot/index.php(88): Mage::run($mageRunCode, $mageRunType);
As we see here, the request starts inrelease-18
and then moves onward to release-19
.
The opcache then bounced around between 18 and 19.
The cache got rewritten at times, but it was obviously not compatible with each other, which lead to the broken sql query.
The core_email_queue
was properly the only table that got used by the cron and the web application and therefor caused this catastrophic behavior.
After clearing the opcache with opcache_reset()
within the FPM process, it worked properly. And also every other exception in the log disappeared (including those I have mentioned here: #3381 (comment)) WHY?!?!? Idk :D Maybe the new OpenMage version handles those exceptions differently now.
So, what have we learned:
- If you release a new version of your software: clear the opcache (fpm reload, cachetool, whatever)
- Try to use the
realpath
when communicating with FPM, not weird symlinks- This is not really possible with Apache
- With nginx use
$realpath
:fastcgi_param SCRIPT_FILENAME $realpath_root/[filename]
- Follow your ironically added information, if they seem like a solid hint :D
Regarding the cache structure change
I jumped from OpenMage 19.4.15 to 19.5.0-rc5.
In between those releases the file cache structure seems to have changed.
Since the cache is usually not required to sustain over releases, is it not considering this to be a breaking change, which should be version 20? 🤔
from magento-lts.
Related Issues (20)
- Fatal error: Uncaught Error: Call to a member function addData() on null HOT 2
- Deprecated functionality: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
- Deprecated functionality: strlen(): Passing null to parameter #1 ($string) of type string is deprecated
- Fatal error: Uncaught Error: Call to a member function setOnclick() on false HOT 2
- Deprecated functionality: nl2br(): Passing null to parameter #1 ($string) of type string is deprecated
- Deprecated functionality: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
- incorrect currency value HOT 4
- Use redis for session HOT 5
- Customer information missing after 19.5.3 -> 20.5.0 upgrade HOT 8
- Creating an order for a new registered customer - Required email address issue HOT 1
- Recaptcha HOT 2
- Payment and Shipping not selectable in backend (customer) order, but in frontend. HOT 1
- OpenMage (19.x and 20.x) appears incompatible with Amasty extensions
- onepage/billing.phtml required still displayed after removed. HOT 3
- Upgrading from 19.4.x to 20: recurring data is not saved
- Customers on online not showing HOT 3
- A recurring product is not calculated correctly in the cart HOT 3
- Long running queries presumably from layered navigation HOT 13
- PHP Error in frontend with improper request params HOT 2
- shardj/zf1-future patches all fail during composer install HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento-lts.