EE compatibility updates:

  • Publisher is EE5 compatible, but it does not currently support the Fluid field.

ExpressionEngine.com licenses:

  • If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: strange behavior when making the arabic language as default language | report some bugs

Status Resolved
Add-on / Version Publisher 3.1.0 build f6fa8aab
Severity
EE Version 5.3.0

HAMAD AL GAHTANI

Dec 19, 2019

I am developing a website with publisher
I have two languages only
arabic | English
when I make the arabic language is default and visit the home page none of publisher tags works and not retrieves any data for me
Like

{exp:publisher:languages}
                <li>
                <a rel="alternate"  hreflang="{short_name}" href="{translated_url}" target="_self">{long_name}</a>
              </li>
            {/exp:publisher:languages}


But when I switch the default language to English everything works fine :\
so I am forced to use English as default language so the website function well.
—-
in Publisher/Utilities/Diagnostics
is shows all the hooks are inactive and shows an error while it is all active !

you cannot delete Phrases group

Fatal error: Uncaught Error: Call to a member function getGroupName() on null in /home/dndoonne/public_html/system/user/addons/publisher/Controllers/Manage/Phrases.php:860 Stack trace: #0 /home/dndoonne/public_html/system/user/addons/publisher/Controllers/AbstractController.php(647): BoldMinded\Publisher\Controllers\Manage\Phrases->deleteGroupAction() #1 /home/dndoonne/public_html/system/user/addons/publisher/Controllers/Manage/Phrases.php(79): BoldMinded\Publisher\Controllers\AbstractController->callControllerAction() #2 /home/dndoonne/public_html/system/user/addons/publisher/mcp.publisher.php(142): BoldMinded\Publisher\Controllers\Manage\Phrases->render('manage/phrases') #3 /home/dndoonne/public_html/system/user/addons/publisher/mcp.publisher.php(93): Publisher_mcp->runController() #4 [internal function]: Publisher_mcp->manage('phrases', 'delete-group') #5 /home/dndoonne/public_html/system/ee/EllisLab/ExpressionEngine/Controller/Addons/Addons.php(1662): call_user_func_array(Array, Array) #6 /home/dndoonne/public_html/sy in /home/dndoonne/public_html/system/user/addons/publisher/Controllers/Manage/Phrases.php on line 860

#1

BoldMinded (Brian)

Dec 19, 2019

Did you add translations for all the phrases in the Languages phrase group?

#2

HAMAD AL GAHTANI

Dec 19, 2019

YES
the problem only when I make Arabic as default language

#3

HAMAD AL GAHTANI

Dec 19, 2019

The phrases has nothing to do with the Arabic as default language issue
this dose not make sense
The problem is very clear the {exp:publisher:languages} tags dose not loop for another language but English.

#4

BoldMinded (Brian)

Dec 20, 2019

It looks like it didn’t add the database rows for the Arabic phrases in the Languages phrase group. I’m not sure how that happened and I wasn’t able to replicate it locally or on your site. You can see I added a Test language (screenshot: https://d.pr/i/QHO7Jg), and it correctly made all the phrases. It looks like you have a {phrase:language_ur} phrase, if you’re adding a 3rd language, delete that phrase, then add the language first. When you create a language it automatically creates the phrase for you in the Languages phrase group.

Backup your database, or at least the exp_publisher_phrase_data table, then run the following query. I think it’ll fix it for you.

INSERT INTO `exp_publisher_phrase_data` (`phrase_id`, `site_id`, `lang_id`, `status`, `edit_date`, `edit_by`, `is_auto`, `phrase_value`)
VALUES
 (1, 1, 2, 'open', 1576847722, 1, 0, 'English (AR)'),
 (2, 1, 2, 'open', 1576847722, 1, 0, 'Arabic (AR)');
#5

HAMAD AL GAHTANI

Dec 20, 2019

Dear Brian
this reply helpful and fixed the error, this made my day I was so blue because of this problem

thanks agin for support

#6

BoldMinded (Brian)

Dec 20, 2019

Awesome, glad I could help 😊

Login to reply

For add-on support, please use the Support section. General inquries and pre-sale questions can be sent to support@boldminded.com.