Jump to content

Coplestone

Members
  • Posts

    12
  • Joined

  • Last visited

Coplestone's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello Guys, I have an interesting issue in Magento. After a site backup and transfer onto a new domain the front-end of my website loads fine, however when I try to navigate to: domain.com/index.php/admin I get a white page. I have enabled debugging mode and it displays this error: 1 Array ( [type] => 64 [message] => Cannot redeclare class Mage_Admin_Model_Session [file] => /var/www/vhosts/domain.co.uk/sub-domain.co.uk/includes/src/__adminhtml.php [line] => 504 ) Since finding this new error, I've tried to comment/remove every class that it cannot redeclare in the __adminhtml.php file, one by one.. Only to find that by the time I've commented them all out and refreshed the admin page, it gives no error whatsoever. Just a white page. Any ideas? Any help is much appreciated.
  2. I have a small issue here which I can't quite figure out. I have three containers on one page all below each other. One for buttons, a JS image slideshow and a description box. The image slider seems to take up unnecessary space when the browser is resized activating media queries: http://gyazo.com/33376dcadc99cba69d5668e240fae788 CSS desktop view (without media queries): body { background: #141414 url('../images/background1.png'); background-repeat: repeat-y; background-attachment:fixed; background-position:center; } #container{ height:450px; width:840px; margin:120px auto 2% auto; position:relative; } #container2{ height:60px; width:840px; margin:0 auto 50px auto; position:relative; -moz-box-shadow:0 0 5px 5px black; -webkit-box-shadow:0 0 5px 5px black; box-shadow:0 0 5px 5px black; } #container2 p{ color:white; font-size:15px; padding-left:5px; } #container2 h2{ color:white; font-size: 18px; text-decoration:none; padding-left:5px; padding-top:2px; } #img{ height:450px; width:840px; position:absolute; -moz-box-shadow: 0 0 5px 5px black; -webkit-box-shadow: 0 0 5px 5px black; box-shadow: 0 0 5px 5px black; } #l_holder{ height:450px; width:100px; position:absolute; left:0px; top:0px; cursor:pointer; } #r_holder{ height:450px; width:100px; position:absolute; right:0px; top:0px; cursor:pointer; } .left{ height:50px; width:50px; position:absolute; top:45%; left:0px; } .right{ height:50px; width:50px; position:absolute; top:45%; right:0px; } .clear{ clear:bottom; } CSS with media queries, this is where the container is causing a problem: @media all and (min-width: 3.5in) and (max-width: 10in) { body { background: #141414; } #container{ height:30%; width:100%; margin:5% auto; padding:0 0 0px 0; } #container2{ width:100%; margin: 0; padding: 0; } #container2 p{ padding-left:3px; } #container2 h2{ padding:5px 0 0 3px; } #container2 .body_black_box{ } #img{ height:80%; width:100%; } #l_holder{ height:80%; } #r_holder{ height:80%; } .left{ } .right{ } .clear{ } } Any help is greatly appreciated.
  3. Hello guys, I was just wondering what I was doing wrong here, I've 'created' a website form in PHP but when I click my submit button it doesn't seem to fetch: php.php?s=1 or php.php?s=2 which is then used to print either Success or Failure. Here's my code: <html> <head> <title></title> <meta charset="utf-8" /> <link rel="stylesheet" href="footer.css" type="text/css"/> <link rel="stylesheet" href="header.css" type="text/css"/> <link rel="stylesheet" href="php/phpbody.css" type="text/css"/> </head> <!--body--> <body> <div id="container"> <h3 id="h3">Contact Me:</h3> <?php $s = isset($_GET['s']) ? $_GET['s'] : ''; if ($s=="1") { echo ('<span class="success">Success! Your enquiry has been sent.</span>'); }else if ($s=="2"){ echo ('<span class="fail">Sorry! Your enquiry has not been sent. Please ensure you have filled in the form correctly.</span>'); } ?> <h5 id="h5">To contact me, please use this form, created with PHP:</h5> <form id="form1" name="form1" method="POST" action"php/send.php"> <strong>First Name:</strong><br><input type="text" name="firstname" id="firstname"><br><br> <strong>Last Name:</strong><br><input type="text" name="lastname" id="lastname"><br><br> <strong>E-mail:</strong><br><input type="text" name="email" id="email"><br><br> <strong>Enquiry:</strong><br><textarea name="enquiry" id="enquiry" cols="45" rows="5"></textarea><br><br> <strong>Security:</strong> 6 + 4 = <input type="text" name="security" id="security" size="1"><br><br> <input type="submit" name="submit" id="submit" value="Submit"/> </form> </div> <?php include('header.php'); ?> <?php include('footer.php'); ?> </body> </html> Send.php: <?php $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $email = $_POST['email']; $enquiry = $_POST['enquiry']; $security = $_POST['security']; $to = "example@Outlook.com"; $subject= "New Form Enquiry"; $message = "A potential employer has submitted an enquiry from your website:\n\n First Name: $firstname\n\n Last Name: $lastname\n\n Email: $email \n\n Enquiry: $enquiry\n\n You should probably respond."; if($security = "10"){ mail($to,$subject,$message); header("Location:php.php?s=1"); //php.php being the forms location }else{ header("Location:php.php?s=2"); //php.php being the forms location } ?> Any ideas would be much appreciated. Thanks.
  4. I didn't have Apache started in XAMPP.
  5. I fixed it. I was being an idiot. At least I fully understand now. LOL. Thanks a lot for your help there.
  6. Currently I'm creating this website offline, I do plan to host it, just not atm. I'm using XAMPP as the server whilst I create this in 'offline mode'. All of my files that contain PHP, just the one at the moment, out of two pages. Is named jspage.php and that contains the <?php include('header.php'); ?> code.
  7. Ah I see. This is what I've done: My second page now no longer has the duplicate HTML code, just what is needed which is just an image slideshow: http://gyazo.com/5ba942657d7f8e5e8dc741813173bb4e In my footer.php (it's quite long so not all of it will be shown): http://gyazo.com/8846f6dcfad2f9607d968119bb05f94e In my header.php: http://gyazo.com/ddfacf078502d0cacecdaa9cf7d709ff It's the exact code that's in my index.html page for both the header and footer. I've included it in my second page using: <?php include('header.php'); ?> <?php include('footer.php'); ?> and in the same page linked to the css files/js files: <link rel="stylesheet" href="footer.css" type="text/css"/> <link rel="stylesheet" href="header.css" type="text/css"/> <link rel="stylesheet" href="js/jsbody.css" type="text/css"/> <script type='text/javascript' src='js/slider.js'></script> But it doesn't seem to be displaying. Sorry to be a pain.
  8. As you've said that, and I read it, I felt a surge of idiocy rock my body. Wow. That was so stupid of me not to add the HTML.. My only question now though, is won't adding the same HTML to each webpage look very repetitive?
  9. I thought it was that easy too until it didn't work? On my main page, these are my links: http://gyazo.com/c6dc6737a69245cdf019b65b7e25f6ad And on my second HTML page (located in the same directory as my index.html) these are my links: http://gyazo.com/23b5599d458a7113b0812d19d9d1bb06 As you can see I am linking to the same .css files bar one or two that are specific to the pages. But the header/footer don't appear on the second page.
  10. Main page: http://gyazo.com/eadf5b70bf495d56978f4fd32e926d61 PHP files: http://gyazo.com/84d736a87253e928180af3e0479373e9 http://gyazo.com/b6348463d801b56ad2d14188b7f2ecbc And inside the PHP being included are the CSS files.
  11. I've finished designing my website home page and I've now moved on the some of the other pages, I want my header and footer to appear the same on every page. I've tried this basic way of linking the same stylesheet that makes up my header/footer in the second HTML file (already used in the homepage): <link rel="stylesheet" href="footer.css" type="text/css"/> <link rel="stylesheet" href="header.css" type="text/css"/> I now understand that this isn't going to work. Would a server-side scripting language be my best bet here? Something like PHP? If so, would anyone be able to link me with an article on how I could do this in PHP, I presume with the include function? I've had answers elsewhere but this, for me, isn't working: "You are currently only linking the css for the header and footer. If you want to include the html as the same, create two separate files header.php and footer.php, then include them into each webpage. <?php include('path/to/header.php');?> // in the location you want the header in the page <?php include('path/to/footer.php');?> // in the location you want the footer Essentially, you're making partials and placing them wherever you want them" Any help would be greatly appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.