Posted: May 26, 2014 at 5:11 pm
|
When editing the properties of a seating chart, there is a dedicated page related to the alignment (left or right)/sorting (from left to right, from right to left) of different sections. If I choose other radio boxes than the default ones, after pressing the Save button the screen refreshes with the default settings, without saving my changes. Meanwhile, PHP logs nothing. |
|
Are you getting the message on the screen: “Alignment updated”? |
|
Yes, I do, but the radio boxes remain the same, even if I access the page one more time. |
|
That means plugins/espresso-seating/template/edit_section_alignment.php line 9 is getting executed. The next question is whether it is executing line 17. Can you go into plugins/espresso-seating/lib/seating_chart.class.php and change line 525 to be: $result=$wpdb->query($sql);var_dump($result); Honestly, I’m not sure what this feature does. I’m guessing that it lets you change the output of a chart that you have already uploaded. |
|
Interesting enough, I checked the database content, and the saving part works ok: I can see properly updated columns (alignment, sort_order) in *_events_seating_chart_level_section_alignment. So, there must be a reading problem affecting wp-admin part as well as the main site (which displays the seating chart; here I couldn’t see any difference at all). |
|
Hi, do you have any news on this subject? Thank you. |
|
Looks like it ends up as an inline style on a div. Look at plugins/espresso-seating/request.php lin 91. |
|
I have seen that, but it is not working because the select part doesn’t properly read and manage the latest database value. |
|
I think I see what may be the problem. There is a transient set with a life of 15 days. It is supposed to be deleted when the section alignment is updated. Try commenting out line 481 of lib/class/seating_chart.class.php: $transient = seating_chart::get_section_alignment_transient($seating_chart_id, $level, $section); |
|
I am sorry if I seem impolite, but I am your customer, not your tester. If you need, I can provide you with sample xls files as seating chart examples to play with. |
|
I checked into further detail, I don’t understand where it fails, but I don’t want to totally skip the transient feature, which is a performance improvement. $transient = seating_chart::get_section_alignment_transient($seating_chart_id, $level, $section); 2. afterwards, when loading the seating chart, get_section_alignment() is called, which tries to read the transient or otherwise reconstruct its data; here, if the delete was ok and on the same transient, it should go and read the latest info from the database: $transient = seating_chart::get_section_alignment_transient($seating_chart_id, $level, $section); |
|
It should work with the transients in theory, but there could be a bug involved that is keeping it from working. I would try it with the transients disabled, as a troubleshooting measure. |
The support post ‘Section align doesn't save changes’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.