Re: New Royal Mail Modules
Did anybody ever get a resolution for the problem below.
I ask because I'm hitting exactly the same thing.
Have we a fix please? - PS running ZenCart 1.3.7 and Module version 2.11 downloaded from the Zen site.
This is a FANTASTIC mod if I can get it to work without crashing my Shop!
Quote:
Originally Posted by
Bryony
Philip,
I just discovered your RM mod and am so pleased with it - it's all I ever hoped would become available - and that all the correct values have been put in for me is just great!
However, I can only install 5 Royal Mail options before hitting a problem: (I also have free options and free shipper installed to cope with virtual items)
I cannot currently install Royal Mail Airmail at all - even if I remove a further option. I have tried to re-configure as suggested in an earlier thread but it doesn't seem to have done the trick for me.
The RM Options I have installed (and working well are: 1st letter/1st lge letter/ 1st packet/2nd lge letter/2nd packet)
As soon as I add 2nd letter I get the above error and if I add Airmail packet I get the following error:
I will do some further investigating to find out what other combinations will be accepted but it's getting very late tonight so I thought I'd post to see if anyone had a quick fix!
PS - running version 1.5 on Zen cart version 1.3.5
Thanks
Bryony
Re: New Royal Mail Modules
Check if you have magic_quotes_runtime enabled on your server - look in admin->tools->server info, and scroll down to the second main box area (under 'Configuration - php core').
If you have it enabled you need to turn it off. You can either put the following line in your .htaccess file in your server document root:
PHP Code:
php_flag magic_quotes_runtime off
Or if you don't have access to your .htaccess file on your server, you can try adding the following:
PHP Code:
if (get_magic_quotes_runtime())
{
set_magic_quotes_runtime(0);
}
to:
includes/application_top.php
and
admin/includes/application_top.php
right at the top of each file, after the licence info. Then report back and let us know if you're getting any other errors.
Re: New Royal Mail Modules
Thanks
Tried the second method - sorry no joy.
I will enable them again.
Is there any further diagnostic info that would help?
Re: New Royal Mail Modules
Do you mean magic_quotes_runtime was 'off' and you still got the error?
Did you check your server info after you put the code in those two files and saved them - was it 'off'?
In the /zc_install folder in your zen cart download there's a file called techsupp.php - upload that to your document root and the access it with your browser.
It will (also) tell you if magic_quotes_runtime is actually turned off - it will also tell you if there are any other things are 'on' that shouldn't be (they should be highlighted in red).
Post your site URL (or PM it to me) and I'll have a look at your techsupp.php if you wish.
Re: New Royal Mail Modules
Thanks for the response
I can run the php script as suggested over the weekend - in the meantime the Server Stats show the following regarding Magic Quotes: (also see attached pdf)
Thanks in advance.
Site is http://www.czechnymphs.co.uk/Shop
Quote:
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log error_log error_log
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir ./ ./
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/lib/php:/usr/local/lib/php .:/usr/lib/php:/usr/local/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 60 30
max_input_time 60 60
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
Re: New Royal Mail Modules
Try turning your magic_quotes_gpc off as well, ie, in:
includes/application_top.php
and
admin/includes/application_top.php
PHP Code:
if (get_magic_quotes_gpc())
{
set_magic_quotes_gpc(0);
}
or in your .htaccess file:
PHP Code:
php_flag magic_quotes_gpc off
The .htaccess method is perhaps the more reliable way of doing it, if you have access to your .htaccess file.
Re: New Royal Mail Modules
Thanks
I'll try this and feed back.
Re: New Royal Mail Modules
OK
Tried that and crashed with message:
Fatal error: Call to undefined function: set_magic_quotes_gpc() in /home/czechny/public_html/Shop/admin/includes/application_top.php on line 55
:-)
Re: New Royal Mail Modules
I did say:
Quote:
you can try adding the following:
:smile:
Will your server allow you to create an .htaccess file in your document root?
If so, put the two php_flag statements in the .htaccess.
Re: New Royal Mail Modules
I can edit the root file in the folder and add the lines - but then unfortunately the whole site crashes. - I do NOT have a .htaccess file in the root solder for the ZenCart store though - just for the whole site (the store is in a sub-folder).
Any ideas?
PS - Thanks for your time and efforts here!