This is the first time I upload a site - http://indianrestaurantmumbai.com/ , I have added everything necessary to my folder (I think), and it gives me this error message:
Warning: require_once(/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes/defines.php): failed to open stream: No such file or directory in /home/ecoconst/public_html/IndianRestaurantMumbai.com/index.php on line 21 Fatal error: require_once(): Failed opening required '/home/ecoconst/public_html/IndianRestaurantMumbai.com/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ecoconst/public_html/IndianRestaurantMumbai.com/index.php on line 21 Can please someone help me out?
require_once $_SERVER['DOCUMENT_ROOT']."/includes/defines.php";instead, or finding the real path of the document by addingecho __FILE__;and accessing that script - and use that absolute path.$_SERVER['DOCUMENT_ROOT'], like explained above. As for theCall to a member function mark() on null, can't help without seeing what that code does.