<p>I'm not entirely sure <em>why</em> you need to resave all the entries but I do know <em>how</em> you can do it quickly and easily. I'd recommend using the <a href="https://github.com/TopShelfCraft/Walk" rel="nofollow noreferrer">Walk plugin</a> by Michael Rog to do this.</p>

<p>The plugin is pretty well-documented in the repository README, but I'll outline the steps here for you as well:</p>

<ol>
<li>Download the plugin folder, drop it in <code>/craft/plugins</code>, and install the plugin in the Craft CP.</li>
<li>Add the <code>yiic</code> file from the repository into the base folder of your Craft install (next to the <code>craft</code> folder).</li>
<li><p>Open your terminal, <code>cd</code> to your Craft install, and run the following:</p>

<pre><code>php yiic walk entries --section=blog --limit=null entries.save
</code></pre>

<p><em>Obviously replace</em> <code>blog</code> <em>with the name of your section.</em></p></li>
</ol>

<p>Hopefully that does the trick for you! Let me know if you have any questions...</p>

CC BY-SA 3.0
2018-03-09T08:54:13.923Z
Thanks, that sounds like a quick and easy solution. Any idea why I get this error?

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory
in /Applications/MAMP/htdocs/website/craft/app/etc/behaviors/AppBehavior.php (876)
in /Applications/MAMP/htdocs/website/craft/app/etc/console/ConsoleApp.php (216)
in /Applications/MAMP/htdocs/website/craft/app/etc/behaviors/AppBehavior.php (80)

already tried everything meanting here: https://craftcms.stackexchange.com/questions/7127/using-yiic-for-plugin-migration
Jan
CC BY-SA 3.0
2018-03-09T15:45:21.093Z
@Jan yeah it sounds like it's having a hard time finding the db credentials and thereby establishing a connection. Where are you setting these - in a .env file, in your Craft config, index.php, etc?
Jalen Davenport
CC BY-SA 3.0
2018-03-09T20:43:43.720Z
unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock did the trick for me. Check https://stackoverflow.com/questions/41852050/yii-console-command-cant-connect-to-database?rq=1

But the plugin didnt help yet, since I have to actually change something in the entry field so SEOmatic updates the SEO title field...
Jan
CC BY-SA 3.0
2018-03-08T12:25:24.000Z
2018-03-08T12:25:24.000Z
Jalen Davenport
<p>I have switched the field of the SEOmatic plugin to translateable. All the SEO Titles are taken from the entry title. After changing to translateable I can see the translated fields in the SEO Title field but I need to save the entry again to see that on the website. Until then, the title is just in one language. Why is that? Is there any way to automate that, since I have a hundreds of entries and I dont want to do that manually.</p>

CC BY-SA 3.0
2018-03-08T11:45:29.977Z
You can loop through all entries and re-save them in php. There are plenty examples how to save entries in the web. https://craftcms.stackexchange.com/questions/5385/plugin-controller-save-entry fetch them all like you are used to in twig and loop through them. I don't see any issues
Robin Schambach
<entries><plugin-seomatic>
Re-Saving neccessary?
# Re-Saving neccessary?

(Asked by: username_0 on 2018-03-08)

I have switched the field of the SEOmatic plugin to translateable. All the SEO Titles are taken from the entry title. After changing to translateable I can see the translated fields in the SEO Title field but I need to save the entry again to see that on the website. Until then, the title is just in one language. Why is that? Is there any way to automate that, since I have a hundreds of entries and I dont want to do that manually.

**Tags:** entries, plugin-seomatic
> **Comments:**
> **username_1**: You can loop through all entries and re-save them in php. There are plenty examples how to save entries in the web. https://craftcms.stackexchange.com/questions/5385/plugin-controller-save-entry fetch them all like you are used to in twig and loop through them. I don't see any issues  

---

## 1 answers

### Answer by username_2 on 2018-03-08. Score: 2

I'm not entirely sure why you need to resave all the entries but I do know how you can do it quickly and easily. I'd recommend using the Walk plugin by Michael Rog to do this.
The plugin is pretty well-documented in the repository README, but I'll outline the steps here for you as well:

Download the plugin folder, drop it in /craft/plugins, and install the plugin in the Craft CP.
Add the yiic file from the repository into the base folder of your Craft install (next to the craft folder).
Open your terminal, cd to your Craft install, and run the following:
php yiic walk entries --section=blog --limit=null entries.save

Obviously replace blog with the name of your section.

Hopefully that does the trick for you! Let me know if you have any questions...

> **Comments:**
> **username_0**: Thanks, that sounds like a quick and easy solution. Any idea why I get this error?  CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory in /Applications/MAMP/htdocs/website/craft/app/etc/behaviors/AppBehavior.php (876) in /Applications/MAMP/htdocs/website/craft/app/etc/console/ConsoleApp.php (216) in /Applications/MAMP/htdocs/website/craft/app/etc/behaviors/AppBehavior.php (80)  already tried everything meanting here: https://craftcms.stackexchange.com/questions/7127/using-yiic-for-plugin-migration  
> **username_2**: @Jan yeah it sounds like it's having a hard time finding the db credentials and thereby establishing a connection. Where are you setting these - in a .env file, in your Craft config, index.php, etc?  
> **username_0**: unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock did the trick for me. Check https://stackoverflow.com/questions/41852050/yii-console-command-cant-connect-to-database?rq=1  But the plugin didnt help yet, since I have to actually change something in the entry field so SEOmatic updates the SEO title field...  

---

