We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

5.x Upgrade Issues

News and General

prjkthack's avatar
prjkthack
7 posts
6 years ago
prjkthack's avatar prjkthack

So just upgraded to the latest version of EE from 3.x, and running into a few odd issues. The installation is largely usable.

  • When not logged into the admin panel, the message:

“Error The page you requested was not found.”

appears. Once logged in I can see the site fine. The site is definitely “on” and any settings that I’m aware of should not be hiding the site.

  • Some parts of the control panel have “loading” bars that never load.

  • IP to Nation never finishes unpacking/inserting the nation lists.

  • When trying to create a new field, the “Type” dropdown is not usable/does not populate.

  • Also when trying to create a new field (after hitting submit):

“Exception Caught Cannot get field of unknown type “”. ee/EllisLab/ExpressionEngine/Model/Content/FieldModel.php:49 Stack Trace: Please include when reporting this error

0 ee/EllisLab/ExpressionEngine/Model/Content/FieldModel.php(94): EllisLab\ExpressionEngine\Model\Content\FieldModel->getField(Array)

1 ee/EllisLab/ExpressionEngine/Model/Channel/ChannelField.php(140): EllisLab\ExpressionEngine\Model\Content\FieldModel->set(Array)

2 ee/EllisLab/ExpressionEngine/Controller/Fields/Fields.php(469): EllisLab\ExpressionEngine\Model\Channel\ChannelField->set(Array)

3 ee/EllisLab/ExpressionEngine/Controller/Fields/Fields.php(225): EllisLab\ExpressionEngine\Controller\Fields\Fields->setWithPost(Object(EllisLab\ExpressionEngine\Model\Channel\ChannelField))

4 [internal function]: EllisLab\ExpressionEngine\Controller\Fields\Fields->create()

5 ee/EllisLab/ExpressionEngine/Core/Core.php(241): call_user_func_array(Array, Array)

6 ee/EllisLab/ExpressionEngine/Core/Core.php(110): EllisLab\ExpressionEngine\Core\Core->runController(Array)

7 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))

8 index.php(152): require_once(‘…’)

8 index.php(152): require_once(‘…’) “

I’ve tried totally new installations and new DBs to see if it was some setting with my existing setup but the same issues occur. I ran the server test utility to make sure my server was configured properly and it reported all good. Also have never had issues using EE prior to 5. So just not sure what all is going on.

Been playing around with different settings, reinstalled numerous times, wiped databases/upgraded from older installations. Nothing helps. Any thoughts?

MySQL 5.5.42 PHP Version 7.1.25 w/ FPM

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones
PHP Version 1.25

? I think you may want to double check that PHP version.

You’re saying that you get all of the exact same behavior and errors on a fresh install with a new database? Please check your web browser’s console for errors. It sounds like some or all of the JavaScript from the themes folder might be failing to load.

       
prjkthack's avatar
prjkthack
7 posts
6 years ago
prjkthack's avatar prjkthack

Forgot that 7. lol

Ah yes, lots of JavaScript errors. 404 Not Found.

“HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). GET - http://www.example.com/system/index.php?S=0&D=cp&C=javascript&M=combo_load&file=cp/channel/menu&v=1547677290”

“HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). GET - http://www.example.com/system/index.php?S=0&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,position,sortable,dialog,button&plugin=ee_interact.event,ee_broadcast.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,nestable&file=react/react.min,react/react-dom.min,json2,underscore,cp/global_start,cp/form_validation,cp/sort_helper,cp/form_group,cp/modal_form,cp/confirm_remove,cp/fuzzy_filters,components/no_results,components/loading,components/filters,components/filterable,components/toggle,components/select_list,fields/select/select,fields/select/mutable_select,fields/dropdown/dropdown&v=1547677302”

Not sure what is causing it. Any ideas?

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

I’d try deploying your themes folder again. It either didn’t get deployed properly, or permissions are such that PHP can’t read them, etc. You should be able to visit those URLs directly and get back minified JavaScript.

       
prjkthack's avatar
prjkthack
7 posts
6 years ago
prjkthack's avatar prjkthack

That’s Derek. I redeployed themes and it didn’t help. Then I looked at my .htaccess file and removed it temporarily and the errors related to javascript loading have mostly gone away, but the issues I described in my first post still occur.

So while things are still broken, there are less errors coming from the browser at least. Here is one that does pop up though…

GET http://www.prjkthack.com/system/index.php?S=0&D=cp&C=javascript&M=combo_load&ui=core,widget,mouse,position,sortable,dialog,button&plugin=ee_interact.event,ee_broadcast.event,ee_notice,ee_txtarea,tablesorter,ee_toggle_all,nestable&file=react/react.min,react/react-dom.min,json2,underscore,cp/global_start,cp/form_validation,cp/sort_helper,cp/form_group,cp/modal_form,cp/confirm_remove,cp/fuzzy_filters,components/no_results,components/loading,components/filters,components/filterable,components/toggle,components/select_list,fields/select/select,fields/select/mutable_select,fields/dropdown/dropdown&v=1547779759 net::ERR_ABORTED 406 (Not Acceptable)

And another that pops up frequently…

index.php?/cp/channels/edit/1:912 Uncaught TypeError: $(…).miniGrid is not a function at HTMLDocument.<a> (index.php?/cp/channels/edit/1:912) at l (jquery.js?v=1547779744:3) at Object.fireWith [as resolveWith] (jquery.js?v=1547779744:3) at Function.ready (jquery.js?v=1547779744:3) at HTMLDocument.s (jquery.js?v=1547779744:2)

Any other ideas or settings I can mess with? I was using the .htaccess file to get my index.php removed and haven’t had any issues with it in previous installations. I did use the updated .htaccess rewrite code provided in the user guide and it appears to be working okay.

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

Looks like your .htaccess may still be causing problems for one, I get a generic page not found 404 on your domain. Any other errors you are seeing are likely cascading from the 406 error your server is sending as a response to that JavaScript request. Where are you hosted and what type of environment is it? Check your web server error logs, which likely wrote a more detailed error for any of those 406 responses.

       
prjkthack's avatar
prjkthack
7 posts
6 years ago
prjkthack's avatar prjkthack

http://www.crucialp.com/ is my host.

I temporarily renamed my .htaccess file to disable it. Same issues.

cPanel Version 76.0 (build 17)

Apache Version 2.4.37

PHP Version 5.6.39

MySQL Version 5.5.42-MariaDB

Architecture x86_64

Operating System Linux

I’ll take a look at the logs.

I did also temporarily disable modsec as a post online suggested that some 406 errors are caused by it, but it doesn’t appear to have changed anything.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
6 years ago
Robin Sowell's avatar Robin Sowell

Any luck with the logs? And the combo load js did load for me- are you still seeing errors in the cp for it?

And while I don’t think it’s releated to the errors, I’d highly recommend upgrading php to 7+.

       
prjkthack's avatar
prjkthack
7 posts
6 years ago
prjkthack's avatar prjkthack

I should have edited that, I am actually on 7.x of PHP.

Oddly enough I took a few days to stop messing with it after I didn’t see much in the logs. Its been oddly frustrating trying to figure out what’s going on.

Your reply prompted me to check on it today… and its working? I did absolutely nothing after my last post aside from download the logs and read through some of it.

Control Panel ALMOST appears to be working properly. No more endless loading bars at least.

While the website itself initially did not load when not logged in, I found that changing access to include guests allows the site to work as normal without being logged in. A little odd, is this a new change for 5.x? I have to manually turn on guest access to each template in order for it to be viewed? Is there a toggle somewhere for me to just turn it all on by default?

Aside from that, everything appears to be working now despite me doing nothing else. Maybe the server just needed a few days to breathe too after I had been furiously messing with it. lol

Edit:

IP to Nation still isn’t loading or inserting properly.

errors: jquery.js?v=1547779744:4 GET http://www.prjkthack.com/system/index.php?/cp/addons/settings/ip_to_nation&method=insert_data 500 (Internal Server Error) Uncaught Internal Server Error

Edit 2: I remembered that I disabled my htaccess and modsec and once I flipped those back on things started breaking again. Let me figure out which is causing what.

       
prjkthack's avatar
prjkthack
7 posts
6 years ago
prjkthack's avatar prjkthack

So modsec is causing the issues with javascripts. I was able to re-enable my htaccess with no issue, but as soon as I turn on modsec, all the weird cp errors occur again.

Once I disable modsec, everything aside from IP to Nation operates normally. Seems a bit odd.

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

mod_security’s content rules should be whitelisted from all control panel requests. You can keep other rules in place for things like user agent, etc., but if you run mod_security at all in the control panel on content, it’s going to cause a lot of problems. When you think about it, as an admin, you are constantly submitting things that would look malicious if it were coming from an unknown actor to the front end of your site.

For IP to Nation, I wonder if you’re just hitting this issue.

       
prjkthack's avatar
prjkthack
7 posts
6 years ago
prjkthack's avatar prjkthack

I was able to get my host to whitelist the /system/index.php and all it well now with modsec enabled. Thanks for helping me track down what the issue was. I guess something must have changed drastically in 4/5 that triggered modsec as I did not have any issues with modsec before the upgrade! Glad the nightmare is over.

As for IP to Nation, I can do without it, I just thought that because it wasn’t working it was an indication of something else in my setup that was not operating properly. I’ll check the add-on in the future for an update.

Thanks all! Appreciate you!

       
twotone8's avatar
twotone8
11 posts
6 years ago
twotone8's avatar twotone8

You mention endless loading screens. I think I may be having a similar issue with bluehost. We’re getting a bunch of error 406’s and I believe it’s due to mod security.

You mention having the host whitelist the /system/index.php in mod_security.

Is that the correct terminology to use when communicating with bluehost’s support team do you think? I imagine they’re very quick shrug away issues they deem as too complex for a shared hosting platform, and I just want to know how best to convey to them what we may need. Mod_security has us hobbled.

       
Derek Jones's avatar
Derek Jones
7,561 posts
6 years ago
Derek Jones's avatar Derek Jones

Should be! Some hosts allow you to disable it .htaccess, e.g.:

<IfModule mod_security.c>
  <If "%{REQUEST_URI} =~ m#/your-admin\.php/#">
    SecFilterEngine Off
    SecFilterScanPOST Off
  </If>
</IfModule>

But it’s best if they can do it at the vhost level.

       
twotone8's avatar
twotone8
11 posts
6 years ago
twotone8's avatar twotone8

So I would test this by inserting the following code into my .htaccess folder from within the /system directory?

<IfModule mod_security.c>
  <If "%{REQUEST_URI} =~ m#/index\.php/#">
    SecFilterEngine Off
    SecFilterScanPOST Off
  </If>
</IfModule>
       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.