Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to load Home page after upgrading #1499

Closed
ilayangudi opened this issue Apr 6, 2016 · 27 comments
Closed

Not able to load Home page after upgrading #1499

ilayangudi opened this issue Apr 6, 2016 · 27 comments
Labels
status: awaiting feedback This issue may be fixed and is awaiting the original poster to confirm the fix.

Comments

@ilayangudi
Copy link

I have updated from 1.0.4 to 2.1. I have gone through all the steps in the admin panel and successfully upgraded. However, when I go to Home page, Chrome displays the following error
www.xyz.com page isn’t working
www.xyz.com redirected you too many times.

and IE displays the following error
Warning!

The flood protection on this site has been activated and you are warned that if you carry on requesting pages you could be banned.

Please help.

@LaocheXe
Copy link
Member

LaocheXe commented Apr 6, 2016

Did you have any old plugins installed at the time of the upgrade?

@ilayangudi
Copy link
Author

I have some old plugins during the upgrade. I tried uninstalling the all the old plugins (in the upgraded site). But still the same error.
capture
capture2

@LaocheXe
Copy link
Member

LaocheXe commented Apr 7, 2016

I had to go into the database and remove them manually

@Moc
Copy link
Member

Moc commented Apr 7, 2016

Those plugins should not cause any issues during the upgrade.

@ilayangudi Are you still able to go into the admin area?
If yes try this:

  1. Update files to latest version:
  • Go into Preferences > Advanced features > Enable developer mode
  • Go into Tools > Database > Sync with Github and synchronize with github
  1. Check for database updates
  • Go into Tools > Database > Check for updates
  1. Check site URL and redirect options:
  • Go into Preferences > (Site information, is loaded by default) > check site URL (could be / or the full URL)
  • Set "Redirect all requests to site URL" to disabled
  1. Check to see if the issue is resolved.

@Moc Moc added status: pending This issue is being worked on or is in the backlog to be fixed. status: awaiting feedback This issue may be fixed and is awaiting the original poster to confirm the fix. labels Apr 7, 2016
@CaMer0n
Copy link
Member

CaMer0n commented Apr 7, 2016

@ilayangudi I'll be happy to troubleshoot this with you via the chatroom. https://gitter.im/e107inc/e107

@ilayangudi
Copy link
Author

I followed the steps provided by Moc. Still the same error.

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 8, 2016

@ilayangudi
Is that screen from your old 1.4 site?
Content plugin can cause problem. This version works under V2 https://github.com/Jimmi08/content. (tested under 2.0)
Links page plugin can cause problem. There is new version that you can download from plugins, but I would suggest to update folder manually from this https://github.com/Jimmi08/links_page (I am not sure if you can download plugin if it already exists) There is database update needed.
(tested under 2.1)

All Father Barry's plugin can cause problems, but they can be used with little modification. This was solution for Birthday plugin: http://e107help.org/1633/birthday-plugin-by-father-barry-under-version-2?show=1633#q1633 (tested under 2.0)

You need to uninstall and delete them (not tables) before upgrade.

@ilayangudi
Copy link
Author

@Jimmi08 yes, the screen is from my old 1.4 site. After the upgrade, I have uninstalled all the plugins to see whether it resolve the problem. But, error remains. The new plugins you mentioned suppose to be installed after the upgrade, is it ?

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 8, 2016

@ilayangudi check via phpmyadmin in database if plugins are really deleted from plugin table. (True, in my case it was in 2 alpha, but unistalling after upgrade didn't help). After backup just delete old folder, replace files and install plugins. If any problems, post issues on their github folders. LinkPage is actively maintained, because I use it.
Personally I did the update by: run upgrade to get v2 database, install clean v2 with new database on the same server (to exclude server issues, f.e. in subdirectory), then delete all files from original and replace them by new installed version (clean), modified e107_config to original database. And if site stops, then problem is in database and it's easy to check diffs when you have 2 database (find uprade issues).

Is your frontpage index.php?

Addition: plugin On This Day works under V2 with one modification. In file onthisday_menu.php the same changes as are on the link about Birthday menu plugin

@ilayangudi
Copy link
Author

@Jimmi08 I have followed instruction as per your comments (as per in para 2) . Now, I am able to see the site. I copied the content plugin from old site to the new upgraded site and activated the menu in the Menu function. It causes the site to display 'Too many redirects' again. I removed the Content Menu from the Menu function and it appears ok. Therefore, Content plugin is causing the problem.

I have lot of articles in the Content plugin. I downloaded the Content-master plugin in https://github.com/Jimmi08/content. I copied manually to the e107_Plugin folder. But the Plugin is not displayed in the Plugin Manager for me to install. Additionally, It displays the following message when I click Refresh button in the plugin manager

Success
'' is missing from the plugin db table

Please let me know how do I install the plugin and upgrade my contents.

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 9, 2016

@ilayangudi - '' is missing from the plugin db table - it's normal. I will update my demo site to 2.1.1 and see if there are some problem. I didn't test to use menu, I will check it, but send your issues about this plugin to it's github directory, please.

edit: you are right, update cause redirect issues. Give me some time.

@ilayangudi
Copy link
Author

@Jimmi08 will wait for your update. Thanks.

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 9, 2016

@ilayangudi Now you can download it, look at existing issues before installation. Nobody needed this plugin, so I stopped to care.

@Moc @CaMer0n
The reason for redirections was that in 2.1 version (or better not in 2.0) $pref stopped have value and this test (very common in old plugins)
if (!isset($pref['plug_installed']['content']))
caused problems. Solution was add
$pref = e107::getPref();
or replace new way

if (!e107::isInstalled('content'))
{
    e107::redirect();
}

@ilayangudi
Copy link
Author

@Jimmi08 I have downloaded and copied to Plugin directory. But, it is not appearing in the 'Not Installed' plugin list for me to install. is there anything I missed out ?

@ilayangudi
Copy link
Author

@Jimmi08 It appears that plugin.xml is missing. I am not sure whether it is required. Additionally, this plugin is not listed under the 'Find Plugins' menu under the Plugin Manager.

Content Management is heavily used in my side. Please help.

@CaMer0n
Copy link
Member

CaMer0n commented Apr 9, 2016

@Jimmi08 Normally it shouldn't have changed. $pref if used right throughout class2.php. Can you explain a little more? How and where was if (!isset($pref['plug_installed']['content']))being used?

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 9, 2016

@CaMer0n
I had 2.0 site with fully working content plugin (not version 2, but working under v2 and replaced some things), but it worked.
Then I updated to 2.1.1 (or better 2.1.2 with github sync) and replace content folder with github version. And I got redirect error. After testing file by file I found reason
https://github.com/Jimmi08/content/commits/master
Todays changes are changes I did to get it works.

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 9, 2016

@ilayangudi move please here: https://github.com/Jimmi08/content/issues/15
did you replace name from content-master to content?

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 9, 2016

@CaMer0n I was able to reproduce this.
Version from 22.2 causes redirect (worked under v2.0), when I replace it actual version, it works. Only changes are commits from today. I will try to test this more, but you are right, $pref can't be empty.

I was able to narrow it to problem with handlers folder. There are files loaded before this.

@Jimmi08
Copy link
Contributor

Jimmi08 commented Apr 9, 2016

@CaMer0n
I made you some screens. Because condition I supposed problem with prefs. Ok, it works now, but it's really weird.
https://github.com/Jimmi08/content/issues/16

@KiraTheUltimate
Copy link

HI guys! This is an old issue, but I want to running OnThisDay plugin on my e107 v2 website, and it doesn't work. I see that the solution is the same as the birthday plugin, but i don't understand what should I change... so, somebody help me? Thx!

@Jimmi08
Copy link
Contributor

Jimmi08 commented Sep 26, 2017

@KiraTheUltimate upload that plugin to your github account please

@KiraTheUltimate
Copy link

It's not my plugin. Downloaded on this link: http://keal.me.uk/e107_plugins/download/download.php?action=view&id=149

and I confess, I dont know how can uploaded to github. :S

@Jimmi08
Copy link
Contributor

Jimmi08 commented Sep 27, 2017

@KiraTheUltimate you should learn to work with github, believe me, I was in your position some years ago. e107 made me!!!

It's open source, you can upload what you want.
Original author is still active https://github.com/G4HDU

@Jimmi08
Copy link
Contributor

Jimmi08 commented Sep 27, 2017

@KiraTheUltimate I found problem only with menu. Do this:

image

Jimako-e107-plugins/e107-old-plugins@77e3395

@KiraTheUltimate
Copy link

It works! Thank you very much!

@CaMer0n
Copy link
Member

CaMer0n commented Sep 28, 2017

Closing. Thank you.

@CaMer0n CaMer0n closed this as completed Sep 28, 2017
@Deltik Deltik removed the status: pending This issue is being worked on or is in the backlog to be fixed. label Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting feedback This issue may be fixed and is awaiting the original poster to confirm the fix.
Projects
None yet
Development

No branches or pull requests

7 participants