1st load, Page not found - 2nd load, page is found

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

1st load, Page not found - 2nd load, page is found

Post by urheat »

Hi,

I just upgraded one of my sites to 2.2.1. After the upgrade I noticed a strange problem.

Some of the pages return "Page not found". If I refresh the page, then the page is loaded. I think this happens mainly, if the page is 3rd in page hierarchy.

You can test this by here: https://kettuki.fi/taidetoiminta/vuoden-taiteilijat and click one of the artist on the right sidebar.

Tried to clear the cache. Nothing in the admin log. System info is attached.

Also - during the upgrade, I got this message:

Code: Select all

problem removing directory: /biz/1/kettufi/html/plugins
118 files/folders deleted for version 2.2: 1 missing, 1 failed
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: 1st load, Page not found - 2nd load, page is found

Post by calguy1000 »

That error can be ignored. For now.

What this means is that when the phar installer tried to move files into the /assets/plugins directory some could not be moved, and therefore it could not delete the directory.

You should fix that up manually. Move whatever is left into /assets/plugins and then remove the /plugins directory.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am
Location: Sydney

Re: 1st load, Page not found - 2nd load, page is found

Post by pwg »

Sorry to say, I am having the same issue, however, I had already deleted the plugins directory - as my first upgrade attempts ran into a few issues.

Copied my system, info below.

Appreciate any help as it means we can't upgrade production sites as yet.

----------------------------------------------
Cms Version: 2.2.1
Installed Modules:
AceEditor2: 1.05
AdminSearch: 1.0.3
CGBlog: 1.14.4
CGExtensions: 1.55.6
CGSimpleSmarty: 2.1.6
CGSmartImage: 1.21.9
CMSContentManager: 1.1.5
CMSMailer: 6.2.14
CmsJobManager: 0.1
DesignManager: 1.1.2
ECB: 1.6
FileManager: 1.6.3
FilePicker: 1.0.alpha
FormBuilder: 0.8.1.6
GBFilePicker: 1.3.3
Gallery: 2.3.1
JMFilePicker: 1.0
JQueryTools: 1.4.0.3
LISE: 1.2.3
MenuManager: 1.50.3
MicroTiny: 2.1.1
ModuleManager: 2.1
Navigator: 1.0.6
News: 2.51.1
Search: 1.51.1
Snippet: 0.2.3
ThemeManager: 1.1.8

Config Information:
php_memory_limit:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale:
set_names: true
timezone: Australia/Sydney
permissive_smarty: false

Php Information:
phpversion: 5.5.29
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22519
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 256M
max_execution_time: 60
register_globals: Off (False)
output_buffering: On
disable_functions:
open_basedir:
test_remote_url: Success
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On

Performance Information:
allow_browser_cache: Off (False)
browser_cache_expiry: 60
php_opcache: Off (False)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
auto_clear_cache_age: Off (False)
Server Information:
Server Software: Apache
Server Api: cgi-fcgi
Server Os: Linux 2.6.32-696.3.2.el6.x86_64 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.55
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable

Permission Information:
tmp: /home/webtacticsnet/dollarsolar3.com.au/tmp (0777)
tmp_cache: /home/webtacticsnet/dollarsolar3.com.au/tmp/cache (0777)
templates_c: /home/webtacticsnet/dollarsolar3.com.au/tmp/templates_c (0777)
modules: /home/webtacticsnet/dollarsolar3.com.au/modules (0777)
uploads: /home/webtacticsnet/dollarsolar3.com.au/uploads (0777)
File Creation Mask (umask): /home/webtacticsnet/dollarsolar3.com.au/tmp/cache (0777)
config_file: 0644
----------------------------------------------

Cheers,
Paul
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: 1st load, Page not found - 2nd load, page is found

Post by urheat »

@calguy

Thanks for the answer. I didn't do anything, 'cause there isn't plugins directory in the root folder after the upgrade. I just got the error message during the upgrade process.

In the current updated install there is only content.process_pagedata.php file in the assets/plugins directory and if I check what was in the plugins folder before upgrade, there are 50+ php files (like content.process_pagedata, function.anchor, function.breadcrumbs...)

So - is everything ok?

The main and original problem still exits. Some of the pages still return 404 at 1st load and are visible after reloading the page.

@pwg - what problem you exactly mean - the one that I still have (bolded text above) or the plugin error message during upgrade process?
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: 1st load, Page not found - 2nd load, page is found

Post by urheat »

Hopefully this helps - I attached the debug logs.
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

[The extension txt has been deactivated and can no longer be displayed.]

pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am
Location: Sydney

Re: 1st load, Page not found - 2nd load, page is found

Post by pwg »

Hi urheat, I'm still experiencing the same, original problem. On first page load, some navigation items aren't found but are after refresh.

Odd to me, is that it only seems to happen to second level nav items, but not all of them. In my case all from one parent page.

Just means I can't upgrade sites beyond 2.16 at this stage.

Good luck with your issue.
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: 1st load, Page not found - 2nd load, page is found

Post by urheat »

Any news concerning this?

Meanwhile I duplicated one of the problematic pages and placed it to second level of the page hierarchy. The page loaded fine.

@pwg Do you have https on? I updated CMSMS and at the same time forced the site use https. I wonder if that has something to do with the problem or is this only a core issue...
pwg
Forum Members
Forum Members
Posts: 191
Joined: Tue Aug 01, 2006 1:48 am
Location: Sydney

Re: 1st load, Page not found - 2nd load, page is found

Post by pwg »

Hey urheat - we aren't experiencing this issue anymore on a test site after upgrading to 2.2.2

There are other issues, but not this one!

Good luck,

Cheers,

Paul
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: 1st load, Page not found - 2nd load, page is found

Post by urheat »

pwg wrote:Hey urheat - we aren't experiencing this issue anymore on a test site after upgrading to 2.2.2

There are other issues, but not this one!

Good luck,

Cheers,

Paul
Thanks Paul - I can confirm this. I would be nice if the dev team would have given some info 'cause this is/was clearly a bug in core and pretty basic function of the whole CMS ;)
User avatar
Rolf
Dev Team Member
Dev Team Member
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: 1st load, Page not found - 2nd load, page is found

Post by Rolf »

Has one of you checked the PHP error log when the 404 occurs?
For now we haven't been able to really reproduce this and (afaik) haven't done any related fixes...
But I do know that I have one site running 2.2.2 and still have this problem once and a while. And this started before 2.2 release!

Thanks, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am
Location: Finland

Re: 1st load, Page not found - 2nd load, page is found

Post by urheat »

Thanks Rolf,

I checked the error logs, but maybe the logs are cleared in some interval, cause logs were empty now. I'll check the logs, if the problem occurs again.
Post Reply

Return to “CMSMS Core”