Drupal Error: Undefined Offset: 0 error & Fastcgi - php

Thanks for reading this. I apologize if there is a simple solution to this but I have been through the forums/Google to find a fix and no luck as yet.
I am getting a Notice: Undefined offset: 0 error. The landing page renders but but all links shoot straight to a "Not Found" error page.
Are these two issues related? I read somewhere, that the Notice: Undefined offset: 0 error is from not having fastcgi as the php rendering engine. Is this correct? and will this solve that issue?
The server is Windows based with Plesk.
You can view the issue here
http://southbaypontoons.com.au/
Thanks in advance for the help!

The first issue, where you are getting 404 files errors for all of your links looks like it might be a rewrite issue.
I am not sure what webserver you are using with Plesk for Windows, but most likely it is IIS - the webserver that comes with Windows.
See this page for the rewriterules: http://drupal.org/node/3854
This will work if you have the IIS rewrite plugin for IIS (http://www.iis.net/downloads/microsoft/url-rewrite) If it is not your own server, you may need to ask your webhost to enable it.
As for the missing images - they are there. Look for example at http://southbaypontoons.com.au/sites/default/files/banner/slider-img1.jpg ... this is the image that is on the top of the home page.
It seems like you need to go through all of your drupal content and remove the /drupal/ at the front of all the images.

Related

novigator display code instead of executing it

I am trying to write a webpage in php.
I installed wamp64, it has the php7.4 version selected, however when I try to display my page on the navigator it shows the code instead of running it.
I also have the following message when I go on localhost :
Notice: Undefined index: urlAddLocalhost in C:\wamp64\www\index.php on line 33
don't know if this is related.
Am I correct to assume that php is downloaded with wamp and apache when I did instaled wamp?
If not how should I proceed ?
Thanks guys, in the end there was a problem with were I placed my wamp files ... problem solved

Prestashop 1.7 Transplant a Module Page Temporarily Unavailable Error

I recently started experiencing a strange error every single time I try to visit the transplant a module page. From the design > positions page3 I click on the "transplant a module" button on the top right and it takes a really long time to load, but then it does not load at all. I get a blank page with the following error:
The page you are looking for is temporarily unavailable.
Please try again later.
5cb0af3eb5bd6096ecb4dce014d6635a 3a1c22abc23c754c0fb7be3b7c58431e 159cf03490b9d26b556696ed897a7daa
I contacted my server provider and they explained to me that the server I was using was reaching the max amount of files allocated, and that I needed to get a new server just for this particular site. So I did. I then cloned the site and database and brought it over to the new server....but I'm still getting this error everytime I try to transplant a module.
Any one ever encountered this issue? Any one have any ideas as to what could be causing this? Any suggestions on what I can do to troubleshoot this error further?
I have turned on debug mode, and it does not give any more information than what's above.
Thank you all,
Maybe you are facing the following known bug. It will be fixed in 1.7.5 (coming soon)
https://github.com/PrestaShop/PrestaShop/issues/10811
Sometimes module have some issues, I've a problem one day and this help me :
In config/xml copy the 2 files "must_have_modules_list.xml" and "default_country_modules_list.xml" on your PC in case,
And then delete the two files from your site,
This "refresh" the cache of your module config
Hope will help you
The "Transplant a module" page is now working after I changed the file AdminModulesPositionsController.php in /root/controllers/admin folder.
In line 449 changed:
$all_modules_controllers = Dispatcher::getModuleControllers($type);
to
$all_modules_controllers = Dispatcher::getControllers($type);
Try this, it's working for me.

Drupal Internal Error

I have a problem, i moved my drupal site, and i can see all my sites working. But sometimes when i editing them it comes "Internal Server Error". I think there is something wrong with my htaccess or my webconfig. As someone told me IIS doesn't use htaccess, but than it uses web.config. The problem is it sometimes shows Error, sometimes not. So i think it has something to do with timeouts or something like that? Could that be?
I find out, what to do that the browser shows me the exact error:
It's this: "PHP Warning: session_start(): Trying to destroy uninitialized session in D:\Parallels\Plesk Panel\Vhosts\example.de\httpdocs\Intranet\includes\bootstrap.inc on line 1165
PHP Warning: session_start(): Failed to decode session object. Session has been destroyed in D:\Parallels\Plesk Panel\Vhosts\example.de\httpdocs\Intranet\includes\bootstrap.inc on line 1165"
Can you see something, where there is something wrong?
IIS doesn't use .htaccess files. It is a different beast altogether. It is unusual to run Drupal on Windows much less IIS, so you may not find much information. Luckily, Microsoft has their own Drupal distro that you can find at http://www.microsoft.com/web/drupal. You can use their distro as-is or as a template for configuring your own installation.

CodeIgniter headers already sent error with different Server

I have a Code Ignitor 1.7.2 application which runs on a Windows 7 Apache Server. I copied the Application to Windows Pro SP2 Apache Server. Than I am getting the error
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent
Filename: helpers/url_helper.php
Line Number: 0
I again copied the application another Windows 7 PC and it is working. Usually this error comes if any space issue.
Please help how to solve this error.
please check whether you have 'echo'ed content the redirection page or diplayer any content in the redirection page
Thanks for your comments. I found the Bug. I am using a function to detect the MAC address of the system where I am using ob_start() and ob_clean(). This is causing the error.
Thanks and solved the issue to find the mac address without using those methods.
Thanks to all

CodeIgniter 500 Internal Server Error and Blank Page

I have just deployed my CodeIgniter application on to a live Windows ISS7 server, tried to access my root page and all I am getting is blank white. Firebug is telling me it's a '500 Internal Server Error'.
The site worked fine on my development server (linux).
When I echo 'hello' in index.php it displays the text, which suggests the server won't load the controllers.
I have no experience using Windows servers unfortunately, and it's not my choice to use it! How can I access some sort of error log?
Any ideas on how I can at least see what the issue is?
Use the following line to find where the php error log file is located :
phpinfo();
ANSWER
Sorry, this is ridiculous. I had PHP errors switched off, thanks to adrien for the inspiration to look at the PHP info.
The error was an SVN conflict which had written < < < mine etc in my database file.
Sorry, such a simple error. Thanks.

Categories