Language Search & Edit

shows one language - Language Search & Edit

shows one language

by Omar_one » Sun Aug 08, 2021 6:14 pm

Hello Preston,
I just install your add-on Language Search & Edit and we have two language (english and finnish) so when I press on the finnish its not shown anything .. here is an screenshot
Capture1212.JPG
phoenix 1.0.8.4

thank you
Omar
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Contact:

Re: shows one language

by zipurman » Mon Aug 09, 2021 5:34 pm

I just did some testing and it all works fine on my end. What Phoenix version are you running? Check the logs, as that screen must be generating errors to look like that.
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Contact:

Re: shows one language

by Omar_one » Mon Aug 09, 2021 6:44 pm

thank you.. it was session_storage.php file in the finnish language not update ...
it was include this function

Code: Select all

tep_session_save_path()
after I copy the file(session_storage.php ) from english folder working well

here it was the error just in casy some one have the same issue

Code: Select all

[08-Aug-2021 21:05:19 Europe/Helsinki] PHP Fatal error:  Uncaught Error: Call to undefined function tep_session_save_path() in /home/xxxx/public_html/test/admin/includes/languages/finnish/modules/security_check/session_storage.php:13
Stack trace:
#0 /home/xxxx/public_html/test/admin/zipur_language_tool.php(297): include_once()
#1 /home/xxxx/public_html/test/admin/zipur_language_tool.php(342): zipGetFileConst('/home/xxxx/p...')
#2 {main}
  thrown in /home/xxxx/public_html/test/admin/includes/languages/finnish/modules/security_check/session_storage.php on line 13
Omar_one
VIP Member
VIP Member
Posts: 481
Joined: Fri Oct 25, 2019 5:06 pm
Contact:

Re: shows one language

by radhavallabh » Wed Mar 01, 2023 9:50 am

zipurman wrote:I just did some testing and it all works fine on my end. What Phoenix version are you running? Check the logs, as that screen must be generating errors to look like that.
Hi dear;
I use 1.0.8.20 yet I get same blank page for my other 3 languages.
I do not have this security check modules in my any language files.
Please Can you help me understand why do I get this blank page?
As there is no error in the php error log.
Thank you in advance...
Regds./
radhavallabh
radhavallabh
VIP Member
VIP Member
Posts: 364
Joined: Tue Oct 27, 2020 4:09 am
Contact:

Re: shows one language

by zipurman » Wed Mar 01, 2023 8:15 pm

radhavallabh wrote: I use 1.0.8.20 yet I get same blank page for my other 3 languages.
I do not have this security check modules in my any language files.
Please Can you help me understand why do I get this blank page?
As there is no error in the php error log.
I also have 1.0.8.20 and do not get any errors and it works as expected.
Are you getting the blank page in all languages, or just 3 of them?
Can you send a screenshot of the blank page please and let me know what steps you do to arrive at the blank page.
** Also make sure to check the admin/error_log
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Contact:

Re: shows one language

by radhavallabh » Fri Mar 03, 2023 5:28 am

zipurman wrote:
radhavallabh wrote: I use 1.0.8.20 yet I get same blank page for my other 3 languages.
I do not have this security check modules in my any language files.
Please Can you help me understand why do I get this blank page?
As there is no error in the php error log.
I also have 1.0.8.20 and do not get any errors and it works as expected.
Are you getting the blank page in all languages, or just 3 of them?
Can you send a screenshot of the blank page please and let me know what steps you do to arrive at the blank page.
** Also make sure to check the admin/error_log
Hi dear;
Thank you for your reply;
I get blank page on all 3 language files other than english.
I click on zipur_language_tool from menu- It opens default as English-
All works well- I select french- Blank page- Click English again blank page- Need set to english manually from the url by retyping english at its end.
Attaching screenshot
Screenshot 2023-03-03 at 10-43-49 Radha Krishna Spiritual Store Administration Tool.png

Found this error- Array to string conversion in /xx/xx/admin/zipur_language_tool.php on line 340

Please help me resolve the issue
Thank you in advance dear;
Regds./
radhavallabh
radhavallabh
VIP Member
VIP Member
Posts: 364
Joined: Tue Oct 27, 2020 4:09 am
Contact:

Re: shows one language

by zipurman » Fri Mar 03, 2023 6:41 am

try the following:

Line: 339-344
Change:

Code: Select all

if ( isset( $before['user'] ) ) {
    $current = array_diff_assoc( $after['user'], $before['user'] );
} else {
    $current = $after['user'];
}
$file_constants[ $file ] = $current;
To:

Code: Select all

if ( isset( $before['user'] ) ) {
    $file_constants[ $file ] = array_diff_assoc( $after['user'], $before['user'] );
} else {
    $file_constants[ $file ]  = $after['user'];
}
Also, what version of PHP are you using?
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Contact:

Re: shows one language

by zipurman » Fri Mar 03, 2023 6:51 am

I updated the code and lowered the error reporting in the file. Try the latest version and let me know if still having issues.
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Contact:

Re: shows one language

by radhavallabh » Fri Mar 03, 2023 9:56 am

zipurman wrote:I updated the code and lowered the error reporting in the file. Try the latest version and let me know if still having issues.
Hi dear;
Thank you for the update;
Now Espanol and English have started working, French and German still same error.
I use PHP 8.0 version dear.
Your help is deeply appreciated dear;
Thank you in advance;
Regds./
radhavallabh
radhavallabh
VIP Member
VIP Member
Posts: 364
Joined: Tue Oct 27, 2020 4:09 am
Contact:

Re: shows one language

by zipurman » Fri Mar 03, 2023 7:24 pm

I added a new version 1.1.0 with some extra error handling. If that doesn't solve it. I would need you to email me at plord@inetx.ca and I can have a closer look at your site/admin/code to help find the issue.
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Contact: