I have two modules that I have created that work together: Products & Categories. They work wonderfully when developing locally, but when I deployed them to my Network Solutions hosting I now get "internal error or misconfiguration" errors. All other pages on the site work fine except for the modules. I'm pretty clueless as to what is causing this, any ideas. Screenshot Below:
--categories_model.php <?php if (!defined('BASEPATH')) exit('No direct script access allowed');<br /> require_once(FUEL_PATH.'models/base_module_model.php');
class Categories_model extends Base_module_model {
public $record_class = 'Category';
function __construct() { parent::__construct('categories'); }
// cleanup category to products function on_after_delete($where) { $this->delete_related('categories_to_products_model', 'category_id', $where); }
// cleanup products from categories to products table function on_after_delete($where) { $this->delete_related('categories_to_products_model', 'product_id', $where); }
function on_after_post($values) { $CI =& get_instance(); $CI->load->library('image_lib');
// resize if an image is uploaded if (!empty($CI->upload)) { $data = $CI->upload->data(); if (!empty($data['full_path'])) { // resize to proper dimensions $config = array(); $config['source_image'] = $data['full_path']; $config['create_thumb'] = FALSE; //$config['new_image'] = $thumb_img; $config['width'] = 960; $config['height'] = 100000; $config['master_dim'] = 'width'; $config['maintain_ratio'] = TRUE; $CI->image_lib->clear(); $CI->image_lib->initialize($config); if (!$CI->image_lib->resize()) { $this->add_error($CI->image_lib->display_errors()); } } } return $values; }
The list area is AJAXed in which is why you see the error displayed in that way (as opposed to the whole page). We've had problems with Network Solutions in the past, regarding .htaccess, but don't remember anything quite like what you have. Regardless, I would look at your htaccess file. Here is an article I found regarding a similar situation: http://www.mainelydesign.com/blog/view/network-solutions-htaccess-mod_rewrite-rewriterule-flawed
Hosting on Network Solutions has been a nightmare, I'll see if I can get my client to switch. I haven't had any of these issues on other hosting providers I've tried.