PHP7 compatibility: preg_match /e is deprecated.
First thing I have found is in admin../includes/functions/advshipper.php.
Saving a region method causes a debug file and saves the method titles as empty.
This seems to fix it. Assume it is untested...
PHP Code:
function UTF8URLDecode($value)
{
if (is_array($value)) {
foreach ($value as $key => $val) {
$value[$key] = UTF8URLDecode($val);
}
} else {
//$value = preg_replace('/%([0-9a-f]{2})/ie', 'chr(hexdec($1))', (string) $value);//steve preg_replace /e deprecated
//steve
$value = preg_replace_callback('/%([0-9a-f]{2})/i',
create_function ('$matches', 'return chr(hexdec($matches[1]));'),
(string) $value);
//eof steve
}
return $value;
}
Steve
github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...
I want to use a separate shipping method for shipping to US military addresses, such as APO AE, APO AA, and APO AP, but i can not figure out what to put in the region's country code. I've tried US:APO, US:APO AE, US:AE and none of these work.
Appreciate this is a zombie thread, but it keeps coming up top of searches for my issue - which is the same, that no changes are being saved. Does anyone have a fix?
It seems only two of you have the problem.Does anyone have a fix?
What version of Advanced Shipper do you have and what is your server php/mysql version?
Do you have the same problem on your development server?
Can you drop the php version down temporarily to check if the problem remains?
Are you sure there are no error logs elsewhere apart from the /logs folder. I get logs generated elsewhere in the file structure that I don't discover until well after the fact.
Steve
github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...
Yes, categories, products, manufacturers not saved to the shipping method when selected from the drop down list. If manually added/edited in phpmyadmin then they show up it the method fine.
happens across 4 different installs ( all same server, all same version)
My version is 5.0.2
Bookmarks