Notifications
Clear all

Script [Solved] Uploading and Embedding images

78 Posts
20 Users
20 Reactions
75.3 K Views
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years 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
(@carsheadline)
Active Member
Joined: 7 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
(@carsheadline)
Active Member
Joined: 7 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: 10591
Admin
(@robert)
Support Team
Joined: 9 years 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: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

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

Page 8 / 14