xajax and codeigniter - blank page and xajax request URI error - codeigniter

I am unfortunately getting a blank page when trying to run a site locally. There are other people running it locally just fine, so I am wondering if it could be something to do with my LAMP environment.
When I attempt to load the site, it's nothing but a blank page. I've ran php index.php in console and the error I get is the following "xajax Error: xajax failed to automatically identify your Request URI.Please set the Request URI explicitly when you instantiate the xajax object.". I'm not quite sure how to handle this in CodeIgniter and or at all to be honest.

I think it's a problem with LAMP configuration: check codeigniter folder permissions (add write permission to "logs" folder.

Thanks for your answer. I actually figured out what the problem was, it was like you said a problem with my LAMP configuration. Unfortunately XAMPP (which is what I am using and or was), the newest version uses PHP 5.3. Xajax doesn't support PHP 5.3 and this was causing the problems. After I went to an older version all was well!

Related

Why am I getting broken access to layouts.app (for lavravel app) on heroku hosting but not on localhost?

I am a student and have created my first Laravel App (A blog app). I have a layout/master view created named app.blade.php in resources/views/layouts folder.
I am using laravel 5.6.
It works perfectly on localhost but not on heroku hosting.
Here is my project structure
Here is my code in home.blade.php
Heroku hosting error screen below
Localhost view
clueless about this problem. I need your support.
EDIT
I solved the problem. I am on a windows system while hosting on a linux platform. So my sweet innocent windows was not updating the "Layouts" on server with "layouts".
But I am with another problem
Regards,
Arpan
but loading /login /register correctly
Now this doesn't end here,
when I type /login with the url it gives me
Now I observe that when i click the link it shows me Not secure connection and displays properly but when typing there is https but not displayed correctly.
Please help me analyse and figure out the issue.
Github repo link : https://github.com/ArpanKIIT2017/blog4b/
Its because the app was unable to find the file. But everything looks good. can you check if the file exists on remote server.
what are you using to push the files to remote server?.
try running
php artisan view:clear
on both local and heroku
Actually Heroku doesn't support SSL in free tier. So https actually won't work.
Finnaly migrated my app to postgre sql.
Problem mainly was due to the uppercase and lowercase representation of "Layouts".
So my app is Up and Running only with one problem that is heroku doesn't support file uploads. It is not storing any file upload. Searching solution for that but not related to this post.
Thank You

Hosting a Laravel 4.2 project with PHP 5.6 on a hosting server 500 Internal Server Error

/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 411
This error above I've faced on a free hosting service that uses PHP 5.3
I'm trying also on another paid service with PHP 5.3 and I'm getting the 500 Internal Server Error, and I made sure my routes and paths are good to go. (The index.php in the public folder, and the /bootstrap/path.php files are good to go with DIR URIs).
Now I'm sure I will keep getting these kind of errors and my app won't work unless I host it on a service with PHP 5.6, but I was hoping there would be a way that I could downgrade my Laravel version or PHP version for some kind of Backward Compatibility.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, cgiadmin#yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
My files are in the root directory, and there isn't any folder named public_html and so the files originally in the Laravel/public folder are dispersed in the root directory and my other application files and folders are in a folder in the root directory.
Any suggestions or help would really be much appreciated.
Laravel 4.2 requires PHP 5.4.
Laravel 4.2 requires PHP 5.4 or greater. This upgraded PHP requirement
allows us to use new PHP features such as traits to provide more
expressive interfaces for tools like Laravel Cashier. PHP 5.4 also
brings significant speed and performance improvements over PHP 5.3.
Please see this for more information: http://laravel.com/docs/4.2/releases
Your question is quite unclear, because you first state that you get the 500 Internal Server Error when using PHP 5.6 (in the title and, assumedly, the tag), but then you say that "[the] app won't work unless [you] host it on a service with PHP 5.6".
I have come over this problem with editing the .htaccess file within the /public_html folder of the server.
OR
By using the cPanel's Redirects and make it Redirect the server to the
domain.com/{if it's inside a folder inside the public_html}/index.php
and then ALL Routes and links worked perfectly fine.
If you want to change the URL and use Pretty URLs refer to the Laravel Documentations under Configuration.

nginx codeigniter subdomain gives error 500

Alright,
So my main site, yorkdigitalsolutions.com is using codeigniter, on nginx and everything works perfectly, I got the redirect and all working perfect.
So I do the same for a codeigniter project I am working on, and I put it to my test subdomain etienne.yorkdigitalsolutions.com, and create the A zone like I should in Linode's dns manager and when I have just a flat html file, it all resolves and works nice, otherwise with the codeigniter project, I get error 500.
Where should I start looking for the problem?
Thanks
Alright,
So it turns out that if you need something (like a database) and codeigniter does not have access to it, it will throw out error 500.
Hopefully this helps someone in the future

Joomla - Component 404 and blank front Page

I am currently running Joomla 1.5, I have moved my site to a new domain and thought I had foloowed the procedure correctly. But now my menus are gone and it seems like articles are not showing up in their proper modules. Other than that the components i was using are now giving me a 404 component not found error. Does anyone know why this is or how I can fix this? Please I really need some help or direction....
Thanks
Here is my link: http://davidjamesmedia.ca
Make sure you check the following things:
Ensure you made the correct database setting changes in the configuration.php
Ensure you server is running PHP 5.2+
Make sure your MySQL version is arounf 5.0+ but also not too high such as 5.5.24 this can cause some problems with depreciated functions.
Also make sure your server has Apache mod_rewrite extension installed if you were using SEF before else you can turn SEF off in the configuration.php

Error 404 while loading images in drupal

My Server's PHP has updated to version 5.3 recently. After this upgrade the drupal which is installed on my site doesn't load the pictures which are located in the '/sites/default/files/' directory. It throws 404 error for every picture stored in this path.
I am pretty confused with this. Do I have to make any change to my .htaccess file?
Is it possible directory permissions were changed when php was upgraded? That would be the simplest explanation, since I'm not aware of a reason why php 5.3 would itself cause this to happen.
I found that there was another .htaccess file in my 'sites/default/files/' folder. My web hosting company has obligated me to remove FollowSymLink. But I didn't know that there was another .htaccess file in my drupal folder. I removed that and now everything is working smoothly.

Resources