From beginning the error was when trying to use PP Standard Payments.
On front you could only see,
#Paypal is busy right now so please try later, with no other information#
Put it in sandbox and it gave me this error.
Warning: unlink(/home/int10507/public_html/rrrrr/wwwwwwww/system/storage170720191253s/cache/cache.catalog.language.1514990162): No such file or directory in /home/int10507/public_html/rrrrr/wwwwwwww/system/library/cache/file.php on line 68
Search and found: (do not know if it is same error)
viewtopic.php?t=200896
Oc version 3.0.2.0 with Journal theme if it can help.
Refreshed modifications and cleared vqcache.
Updated with this for admin and catalog: https://github.com/opencart/opencart/co ... 990171168e
Now I get this error directly on front and same in error log.
PHP Notice: Undefined index: fi-fi in /home/int10507/public_html/rrrrr/wwwwwwww/system/storage170720191253s/modification/catalog/controller/startup/startup.php on line 114
If I google this last error I get links to at least 10 sites having same error on front so I think there could be someone that recognize it?
How do you resolve it?
Seems to me related to a language like Finish?PHP Notice: Undefined index: fi-fi
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
FAQ: viewtopic.php?f=176&p=758315#p750077 . However, since you are using OC v3.0.2.0 release, that would be correct. It used to be a bug but on more recent OC versions, this issue has been rectified including on the master branch from Github.Warning: unlink(/home/int10507/public_html/rrrrr/wwwwwwww/system/storage170720191253s/cache/cache.catalog.language.1514990162): No such file or directory in /home/int10507/public_html/rrrrr/wwwwwwww/system/library/cache/file.php on line 68
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
PHP Notice: Undefined index: fi-fi in /home/int10507/public_html/rrrrr/wwwwwwww/system/storage170720191253s/modification/catalog/controller/startup/startup.php on line 114
But since you have a modification there, nobody can know where line 114 is but you.
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Thanks for your replay!
Do not really know what you mean?
Before I did not have any error in my log or on pages
If I used Banktransfer or Dibs Easy checkout or Invoice I have success transfer and no errors.
All of them I use with custom translation (language files)
All started when I wanted to use Paypal Standard.
Founf the (fix) for language.php files and change them both. After that I got this last error in startup.php.
For me it looks like Paypal maybe not working with custom languages.
Could it be like that?
Thanks for your replay!straightlight wrote: ↑Tue Aug 13, 2019 8:31 amFAQ: viewtopic.php?f=176&p=758315#p750077 . However, since you are using OC v3.0.2.0 release, that would be correct. It used to be a bug but on more recent OC versions, this issue has been rectified including on the master branch from Github.Warning: unlink(/home/int10507/public_html/rrrrr/wwwwwwww/system/storage170720191253s/cache/cache.catalog.language.1514990162): No such file or directory in /home/int10507/public_html/rrrrr/wwwwwwww/system/library/cache/file.php on line 68
Warning: unlink(/home/int10507/public_html/rrrrr/wwwwwwww/system/storage170720191253s/cache/cache.catalog.language.1514990162): No such file or directory in /home/int10507/public_html/rrrrr/wwwwwwww/system/library/cache/file.php on line 68
Do not have above error if I use my other payments with original files. All started for me with Paypal.
Thanks for your replay!letxobnav wrote: ↑Tue Aug 13, 2019 9:19 amthat is not an error but a notice from code for your language detection in startup where an array element is referenced with index fi-fi which is not set/defined.Code: Select all
PHP Notice: Undefined index: fi-fi in /home/int10507/public_html/rrrrr/wwwwwwww/system/storage170720191253s/modification/catalog/controller/startup/startup.php on line 114
But since you have a modification there, nobody can know where line 114 is but you.
Could it help if I send a file to you? Which file you mean?
I know it can be an extension but other payments are working with original files or not make any notice.
/home/int10507/public_html/rrrrr/wwwwwwww/system/storage170720191253s/modification/catalog/controller/startup/startup.php
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Thanks for your replay!
Here comes little from file:
107 // Overwrite the default language object
108 $language = new Language($code);
109 $language->load($code);
110
111 $this->registry->set('language', $language);
112
113 // Set the config language_id
114 $this->config->set('config_language_id', $languages[$code]['language_id']);
115
116 // Customer
117 $customer = new Cart\Customer($this->registry);
118 $this->registry->set('customer', $customer);
Code: Select all
$this->log->write('code: '.$code);
$this->log->write('languages: '.print_r($languages,true));
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Do not know why it looks so strange when paste.
Needed to set (o) in code.
2019-08-14 7:38:10 - code: fi-fi
2019-08-14 7:38:10 - languages: Array
(
[fi-fi] => Array
(
[language_id] => 2
[name] => Suomi
[c(o)de] => fi-fi
[locale] => fi_FI.UTF-8,fi_FI,fi-FI,finnish
[image] => fi-fi.png
[directory] => finnish
[sort_order] => 1
[status] => 1
2019-08-14 7:40:07 - code: fi-fi
2019-08-14 7:40:07 - languages: Array
(
[fi-fi] => Array
(
[language_id] => 2
[name] => Suomi
[c(o)de] => fi-fi
[locale] => fi_FI.UTF-8,fi_FI,fi-FI,finnish
[image] => fi-fi.png
[directory] => finnish
[sort_order] => 1
[status] => 1
)
)
viewtopic.php?t=200601
A guy with same problem but with another payment.
And that works if I use "lowercase" for all text inputs fields at checkout.
Could it be that?
How do I make changes in: /catalog/controller/extension/payment/pp_standard.php
So it only send "lowercase"
In ocmod log I see:
MOD: Paypal str to lower
FILE: catalog/controller/extension/payment/pp_standard.php
CODE: $this->session->data['order_id'] . ' - ' . html_entity_decode($order_info['payment_firstname'], ENT_QUOTES, 'UTF-8') . ' ' . html_entity_decode($order_info['payment_lastname'], ENT_QUOTES, 'UTF-8');
LINE: 84
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
that is because the forum uses that tag to specify code display.Do not know why it looks so strange when paste.
Needed to set (o) in code.
did the log still issue the notice when it displayed the above info?2019-08-14 7:38:10 - code: fi-fi
2019-08-14 7:38:10 - languages: Array
(
[fi-fi] => Array
(
[language_id] => 2
[name] => Suomi
[c(o)de] => fi-fi
[locale] => fi_FI.UTF-8,fi_FI,fi-FI,finnish
[image] => fi-fi.png
[directory] => finnish
[sort_order] => 1
[status] => 1
2019-08-14 7:40:07 - code: fi-fi
2019-08-14 7:40:07 - languages: Array
(
[fi-fi] => Array
(
[language_id] => 2
[name] => Suomi
[c(o)de] => fi-fi
[locale] => fi_FI.UTF-8,fi_FI,fi-FI,finnish
[image] => fi-fi.png
[directory] => finnish
[sort_order] => 1
[status] => 1
)
)
Code: Select all
$this->config->set('config_language_id', $languages[$code]['language_id']);
the code is set to fi-fi and that would make the $language[$code]['language_id'] produce "2" in your case.
the notice simply states that there is no $language['fi-fi']['language_id'] which in the above output is wrong as it is clearly there.
upper or lower case has no bearing on this.
therefore my question:
did the log still issue the notice when it displayed the above info?
or does it issue that notice sometimes?
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
you can change this line in startup.php
Code: Select all
// Set the config language_id
$this->config->set('config_language_id', $languages[$code]['language_id']);
into
Code: Select all
if (isset($languages[$code]['language_id'])) {
$this->config->set('config_language_id', $languages[$code]['language_id']);
} else {
$this->log->write('Startup notice: Cannot set config language id');
$this->log->write('Startup notice: Variable $languages['.$code.'][language_id] is not set');
$this->log->write('Startup notice: Request GET: '.print_r($this->request->get,true));
$this->log->write('Startup notice: Defined languages: '.print_r($languages,true));
}
It will check if the code exists in the $languages array before assigning its language id to the config thus removing the notice if it is not defined.
If it is not set, it will insert the above notices in the OC log with the language code not found, the get variables of the request and your defined languages.
So if it it happens again, you can see when and why, in the log, not on the screen (turn display errors of anyway).
Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces
“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.
Thanks for your replay!straightlight wrote: ↑Sun Aug 18, 2019 9:51 amNot a bug since the strtolower enforcement relies on specific country and zone where other regions are not being affected by this change.
It is a bug.
I just paid xxxusd to get it fixed and it is in Paypal files he did change.
Now it is working.
Take care!
Users browsing this forum: No registered users and 6 guests