Skip Navigation

[Resolved] Upload featured image failed in secondary language

This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 18 replies, has 2 voices.

Last updated by Shane 7 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#439956

Is possible spanish support?

I have three CRED post forms. Each with a different language. The primary language form works properly but others give me an error when I try to upload a image.

I use wpml. The type posts are not translatable. Only translate the interface of the form. The posts are uploaded in one language only. The forms are exactly alike except for labels.

Can you help me?

#440133

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

Are you experiencing any errors when you are trying to upload the files ?

If so could you let me know the error that appears.

Thanks,
Shane

#440232

Hello,
In primary language are not errors. But in other languages, when I try to upload an image happens:
-I click the button to select the file
-Opens a window
-Select the file and click on the button
-A window pops up that says Upload Failed!
-No progress bar appears

Looking console browser seems that there is a problem:

http 403 OPTIONS hidden link

wpml configuration has chosen a different domain per language. The error refers to the domain's primary language but It is not correct.

Can you help me?

#440436

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

We've just pushed an update for all of our plugins.

Could you update and let me know if the problem still persists.

Thanks,
Shane

#440709

I have updated plugins and are still the same error.
I think it's WPML configuration. A different domain per language.
but I need assistance.

#440960

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

If you change you WPML settings to not use a different directory does it work then ?

I believe our plugin may be reading the directory wrong.

Please let me know.
Thanks,
Shane

#440970

yes, If I change WPML settings, the form works correctly.

but this settings is important for me

#441035

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

I was not able to replicate this problem.

What I did was to create 1 form and then add it to a spanish page.

This will then be able to create a post in Spanish and upload the image and it works fine.

Is this a custom field or the featured image field.

Please let me know.
Thanks,
Shane

#441200

is a featured image field.

I have a test server.
I can give you access if you want to check it out yourself.

From the Technical Services WPML told me that the problem is in the settings of CORS.

The server technical services told me CORS is active.

Can you help me?

#441997

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Yes please provide me with access to the Site and how can I replicate the problem.

The private fields have been enabled.

Thanks,
Shane

#443116

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Could you try this fix on our erratas page and let me know if it helps ?

Thanks,
Shane

#443122

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

#443124

Where can I find this fix?
What is the title in erratas page?

#443133

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

My bad I forgot that I didn't attach the url.

https://toolset.com/errata/upload-fails-wordpress-installed-directory/

Thanks,
Shane

#443310
Captura de pantalla 2016-10-05 a les 8.31.47.png

Now I am seeing invalid nonce issue.

There is invalid nonce issue because wp_get_session_token(); is returning blank string in the toolset \plugins\cred-frontend-editor\embedded\toolset\toolset-common\toolset-forms\classes\submit.php file when you are secondary domain using WPML + language per domain. This might be because of custom WordPress loading.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.