WPFORMS – zobrazení souborů – chyba 500 .htaccess

Dobrý den, již dobré dva týdny řeším potíže s pluginem WPFORMS, který je relativně uživatelsky příjemný a zdá se být jednoduchý, jen jejich podpora není moc komunikativní.

Přes jejich placenou verzi si vytvořím uživatelský formulář, kde mi zákazník odešle také soubor, ale já ho nejsem schopný zobrazi – Chyba – nternal Server Error
Pri zpracovani pozadavku doslo k vnitrni chybe. Pravdepodobne se jedna o chybu v .htaccess souboru.

Ctete instrukce v nasi znalostni bazi: Chyba 500 – Internal Server Error

Řeším s podporou wedos i pluginu, ale bohužel bez výsledku.
Rady od tvůrců pluginu jsou pro mne absolutně nepochopitelné, ale jsem spíše amatér.

Dokážete mne prosím někdo navést?

Jediná možnost, která se nabízí, kterou se mi nepodařilo vyzkouše je tato rada:
On checking the Media setting here: http://hrackoun.cz/wp-admin/options-media.php — I see that the file upload path is custom and defined as /data/web/virtuals/303398/virtual/www/domains/hrackoun.cz/wp-content/uploads

In this case, please define the same specific directory for WPForms File Upload field as shown in this dev doc: https://wpforms.com/developers/how-to-define-a-specific-directory-for-file-uploads/ — Just add the custom code to your site by replacing the $path in the code.

In case it helps, here’s our tutorial with the most common ways to add custom code like this: https://wpforms.com/developers/how-to-add-custom-php-or-javascript-for-wpforms/.

For the most beginner-friendly option in that tutorial, I’d recommend using the WPCode plugin: http://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/. This will protect your code from updates and keep it easy to manage right within your WordPress admin area.

I would also like to mention that this code customization falls beyond the scope of support we offer and this code snippet is provided as a courtesy. In case you’d like to look into custom development options, we highly recommend using Codeable. Codeable screens all developers for you to make sure that they’re highly skilled and communicative, and then also helps guide the entire process of connecting and communicating with a best-fit developer.

In this case, you can begin with add this custom code to your site:
function wpf_dev_upload_root( $path ) {

//Define the path for your file uploads here
$path = ‘/data/web/virtuals/303398/virtual/www/domains/hrackoun.cz/wp-content/uploads’;

return $path;

}
add_filter( ‘wpforms_upload_root’, ‘wpf_dev_upload_root’, 10, 1 );

Nicméně vložení tohoto kodu absolutně nechápu, nevím kam. Nemohu nikde zmiňovaný PATH najít.
Jsem v požadovaných složkách ftp, ale nedokáži definovat kde je chyba.

Za každou, i placenou radu děkuji 🙂

Správa WordPress webu

Nemusíte na to být sami. Pomůžeme vám s pravidelnou údržbou i novými vylepšeními.

Více informací

1 názor na “WPFORMS – zobrazení souborů – chyba 500 .htaccess”

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *

Nákupní košík
Přejít nahoru