View Single Post
Old 08-24-2023, 06:36 AM  
TheBlackShark
Confirmed User
 
TheBlackShark's Avatar
 
Industry Role:
Join Date: Aug 2016
Location: Cyberspace
Posts: 262
WP Cam Chaturbate Plugin

Hello friends,

I have an old wordpress cb plugin (downloaded many years ago from an old site called sexplugins.com) that stopped to work on a new wordpress installation.

Here the error given by wordpress:

Code:
Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/xxx/xxx.com/wp-content/plugins/wp-chaturbate/wp-chaturbate.php on line 501
Here is the function, line 501 is the 2nd line:

Quote:
function chaturbate_selfURL() {
$s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
$protocol = chaturbate_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s;
$port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
}
Tried to fix in many ways but unfortunately still doesn't work..

I offer:
money or eternal glory or i will share the entire plugin folder with the community if who fix this wants.

Thanks!
TheBlackShark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote