AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Uploading and Embedding images

78 Posts
20 Users
19 Reactions
96.3 K Views
Robert
Posts: 10741
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months ago

You can find the fatal error message in file system, in error.log files. It may be on root directory or in theme directories.


Posts: 9
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@carsheadline)
Active Member
Joined: 8 years ago
Posted by: Robert

You can find the fatal error message in file system, in error.log files. It may be on root directory or in theme directories.

When I put the code in via FTP I get this error: Parse error: syntax error, unexpected 'if' (T_IF) in path/theme/functions.php on line 4


Posts: 9
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@carsheadline)
Active Member
Joined: 8 years ago
Posted by: Robert

You can find the fatal error message in file system, in error.log files. It may be on root directory or in theme directories.

I gave the exact code in my functions file along with my error to my theme support. They said there's nothing in there that would be conflicting with their theme. They've told me something in the code for the plugin is conflicting on your side.


Robert
Posts: 10741
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months ago

The code is correct, there is no syntax error in this code. You can check it here:

https://phpcodechecker.com/

You also can disable wpForo plugin before adding this code to see that the problem doesn't have any relation to wpForo.

I think something wrong with line-berks and spaces of your editor. try to add extra line-breaks after each line. I have no other clue, the code works perfect on all tested websites and on other users websites. You can install a fresh WordPress and test it.


Robert
Posts: 10741
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months ago

Also make sure you use correct functions.php file. Try other themes too...


Page 8 / 14
Share: